/** * Copyright(c) dtysky * Created: 2017/6/11 * Description: */ import { TFile, TImageConstraintKey, ICheckResponse } from './types'; export declare const checkImage: (file: TFile, maxBytesPerPixel: number, maxSize: number, maxWidth?: number) => Promise; export declare class ImageChecker { private maxBytesPerPixel; private maxSize; private maxWidth; constructor(maxBytesPerPixel: number, maxSize: number, maxWidth?: number); setAttr: (key: TImageConstraintKey, value: number) => void; check: (file: File) => Promise; }