export declare type FilesValidator = (files: ReadonlyArray) => ReadonlyArray | ErrorType | string | undefined; /** * Factory method for creating a common file type validator. * * @param {string} accept - It is the same as 'accept' attribute for HTML . * @param {function} getError - A callback function for generating a customised user error. */ export declare function createFileTypeValidator({ accept, getError, }: { accept: string; getError?: (file: File) => ErrorType; }): FilesValidator; /** * Factory method for creating a common total selection size validator. * * @param {number} maxSize - Max selection size in bytes. * @param {function} getError - A callback function for generating a customised user error. */ export declare function createTotalSizeValidator({ maxSize, getError, }: { maxSize: number; getError?: (totalSize: number) => ErrorType; }): FilesValidator;