UNPKG

@nish1896/rhf-mui-components

Version:

A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms

14 lines (13 loc) 476 B
import { FileUploadError } from '../types'; type FileSizeOptions = { valueAsNumber?: boolean; precision?: number; }; type ProcessFilesResult = { acceptedFiles: File[]; rejectedFiles?: File[]; errors?: FileUploadError[]; }; export declare function getFileSize(size: number, options?: FileSizeOptions): string; export declare function validateFileList(fileList: FileList, accept?: string, maxSize?: number, maxFiles?: number): ProcessFilesResult; export {};