File size: 470 Bytes
			
			| 2cb3f09 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /**
 * @note For some reason the types aren't picked up from node_modules so I declared the module here
 * with only the function that we use.
 */
declare module 'istextorbinary' {
  export interface EncodingOpts {
    /** Defaults to 24 */
    chunkLength?: number;
    /** If not provided, will check the start, beginning, and end */
    chunkBegin?: number;
  }
  export function getEncoding(buffer: Buffer | null, opts?: EncodingOpts): 'utf8' | 'binary' | null;
}
 | 
