blob: 4b0ebf4f5c0992a95f6e72f8ecb22333999d3d91 [file] [log] [blame] [edit]
export interface IDetectedMap {
encoding: string,
confidence: number
}
export interface IOptionsMap {
minimumThreshold?: number,
detectEncodings?: Array<string>
}
export function detect(buffer: Buffer | string, options?: IOptionsMap): IDetectedMap;
export function detectAll(buffer: Buffer | string, options?: IOptionsMap): IDetectedMap[];
export function enableDebug(): void;