export declare type TFile = File; export declare type TFileType = string; export declare type TFileTypes = TFileType[]; export declare type TImageConstraintKey = 'maxBytesPerPixel' | 'maxSize' | 'maxWidth'; export declare type TVideoConstraintKey = 'maxBytesPerPixelPerSecond' | 'maxSize' | 'maxWidth' | 'maxDuration'; export declare const videoRegex: RegExp; export declare const imageRegex: RegExp; export interface IFileInfo { type: TFileType; width?: number; height?: number; size?: number; duration?: number; } export declare type TError = 'type' | 'width' | 'size' | 'duration' | 'bytes' | 'unknown'; export interface ICheckError { name: TError; currentValue: number | string[] | string; limitValue: number | string[] | string; stack?: string; message: string; } export declare class CheckError extends Error { currentValue: number | string[] | string; limitValue: number | string[] | string; constructor(params: ICheckError); } export interface ICheckResponse { file: TFile; info: IFileInfo; error?: ICheckError; }