index.d.ts 592 B

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