import type { FileRejection, DropzoneProps as ReactDropZoneProps } from "react-dropzone"; export type DropzoneLocale = { clearInput?: string; removeFile?: string; placeholder?: (multiple: boolean) => string; clickToSelect?: string; }; export interface DropzoneBaseProps { /** * The id of the `Dropzone`. */ id?: string; /** * The callback function that is called when files are added to the `Dropzone`. */ onChange?(acceptedFiles: File[], fileRejections: FileRejection[]): void; /** * The placeholder of the `Dropzone`. */ placeholder?: string; /** * Whether the `Dropzone` is clearable. * @default false */ clearable?: boolean; /** * The requirements of the `Dropzone`. */ requirements?: string; /** * The class name of the `Dropzone`. */ className?: string; /** * Whether the `Dropzone` allows multiple files. * @default false */ multiple?: boolean; /** * Whether the `Dropzone` is required. * @default false */ required?: boolean; /** * The locale of the `Dropzone`. */ locale?: DropzoneLocale; /** * Whether the `Dropzone` hides the files. * @default false */ hideFiles?: boolean; /** * The accepted file types of the `Dropzone`. */ accept?: ReactDropZoneProps["accept"]; /** * The minimum file size of the `Dropzone`. */ minSize?: ReactDropZoneProps["minSize"]; /** * The maximum file size of the `Dropzone`. */ maxSize?: ReactDropZoneProps["maxSize"]; /** * The maximum number of files of the `Dropzone`. */ maxFiles?: ReactDropZoneProps["maxFiles"]; /** * Whether the `Dropzone` prevents the drop event on the document. */ preventDropOnDocument?: ReactDropZoneProps["preventDropOnDocument"]; /** * Whether the `Dropzone` prevents the click event on the document. */ noClick?: ReactDropZoneProps["noClick"]; /** * Whether the `Dropzone` prevents the keyboard event on the document. */ noKeyboard?: ReactDropZoneProps["noKeyboard"]; /** * Whether the `Dropzone` prevents the drag event on the document. */ noDrag?: ReactDropZoneProps["noDrag"]; /** * Whether the `Dropzone` prevents the drag events bubbling. */ noDragEventsBubbling?: ReactDropZoneProps["noDragEventsBubbling"]; /** * Whether the `Dropzone` is disabled. */ disabled?: ReactDropZoneProps["disabled"]; /** * The callback function that is called to get the files from the event. */ getFilesFromEvent?: ReactDropZoneProps["getFilesFromEvent"]; /** * The callback function that is called when the file dialog is canceled. */ onFileDialogCancel?: ReactDropZoneProps["onFileDialogCancel"]; /** * The callback function that is called when the file dialog is opened. */ onFileDialogOpen?: ReactDropZoneProps["onFileDialogOpen"]; /** * The callback function that is called to validate the file. */ validator?: ReactDropZoneProps["validator"]; } export type DropzoneProps = DropzoneBaseProps & Omit; /** * The `Dropzone` component is used to upload files. * * See the [Dropzone documentation page](https://satellite.algolia.com/8261d6576/p/11f945-dropzone) for more information. */ export declare const Dropzone: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;