UNPKG

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