import { FileType } from '../../common'; type AllowedFileTypes = string | readonly string[] | readonly FileType[]; export type UploadButtonProps = { /** * Disable the upload button if your app is not yet ready to accept uploads */ disabled?: boolean; /** * Should be true, if the UploadInput has at least 1 * file (valid or invalid) listed. */ withEntries?: boolean; /** * Allow multiple file uploads */ multiple?: boolean; /** * List of allowed filetypes, eg. '*' | '.zip,application/zip' | ['.jpg,.jpeg,image/jpeg', '.png,image/png'] (default: image files + PDF) */ fileTypes?: AllowedFileTypes; /** * Size limit in KBs (1000 KB = 1 MB). * If set to `null`, no size limit will be applied. * @default 5000 */ sizeLimit?: number | null; /** * Description for the upload button */ description?: string | undefined; /** * Maximum number of files allowed, if provided, shows error below file item */ maxFiles?: number; /** * Called when some files were successfully selected * * @param files */ onChange: (files: FileList) => void; /** * Id for the upload input */ id?: string; /** * Title for the upload button */ uploadButtonTitle?: string; }; export declare enum TEST_IDS { uploadInput = "uploadInput", mediaBody = "mediaBody" } declare const UploadButton: import("react").ForwardRefExoticComponent>; export default UploadButton; //# sourceMappingURL=UploadButton.d.ts.map