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