1 | import { Match } from './match';
|
2 | interface FullOptions {
|
3 | sampleSize: number;
|
4 | }
|
5 | declare type Options = Partial<FullOptions>;
|
6 | declare type DetectResult = Match[] | string | null;
|
7 | export declare const detect: (buffer: Uint8Array) => string | null;
|
8 | export declare const analyse: (buffer: Uint8Array) => Match[];
|
9 | export declare const detectFile: (filepath: string, opts?: Options) => Promise<DetectResult>;
|
10 | export declare const detectFileSync: (filepath: string, opts?: Options) => DetectResult;
|
11 | declare const _default: {
|
12 | analyse: (buffer: Uint8Array) => Match[];
|
13 | detect: (buffer: Uint8Array) => string | null;
|
14 | detectFileSync: (filepath: string, opts?: Partial<FullOptions>) => DetectResult;
|
15 | detectFile: (filepath: string, opts?: Partial<FullOptions>) => Promise<DetectResult>;
|
16 | };
|
17 | export default _default;
|