import { UploadFileButtonProps } from '../UploadFileButton/UploadFileButton.js'; export type FileDropperProps = { id?: string; /** * Callback on files dropped */ onDrop?: (files: File[]) => void; /** * Callback on files selected */ onChange: UploadFileButtonProps['onChange']; /** * Error to show */ error?: string; /** * Smaller text to show, such as limits */ hints?: string; /** * Text of the browsing button */ buttonText?: string; /** * additional buttons to display next to browse files */ buttons?: JSX.Element; /** * When true, allows many files to be selected when browsing */ multiple?: UploadFileButtonProps['multiple']; /** * Text displayed by default */ message?: string; /** * Text displayed on drag enter */ releaseText?: string; /** * Whether files are getting uploaded */ isLoading?: boolean; /** * progress of the upload */ uploadProgress?: number; }; declare const FileDropper: (args: FileDropperProps) => JSX.Element | null; export default FileDropper;