Add type definition for buffer-reader

Add type definition for buffer-reader