UNPKG

592 BTypeScriptView Raw
1import type { imageType } from './types/index';
2import type { ISizeCalculationResult } from './types/interface';
3type CallbackFn = (e: Error | null, r?: ISizeCalculationResult) => void;
4export default imageSize;
5export declare function imageSize(input: Uint8Array | string): ISizeCalculationResult;
6export declare function imageSize(input: string, callback: CallbackFn): void;
7export declare const disableFS: (v: boolean) => void;
8export declare const disableTypes: (types: imageType[]) => void;
9export declare const setConcurrency: (c: number) => void;
10export declare const types: string[];