import { ReactElement } from 'react'; import { CommonProps } from '../../common'; export interface DragAndDropProps extends CommonProps { /** * A comma-separated list of one or more file types, or [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers), describing which file types to allow. */ accept?: string; /** * Description for accepted files. */ description?: string | ReactElement; /** * Maximum file size (in `bytes`). */ maxSize?: number; /** * Allow to drag and drop/select multiple files. */ multiple?: boolean; /** * Event handler receiving accepted files. */ onAccept?: (files: File[]) => void; /** * Event handler receiving rejected files. */ onReject?: (rejectedFiles: { file: File; reason: 'size-limit-exceeded' | 'format-not-allowed'; }[]) => void; /** * Displayed text. */ text?: string | ReactElement; } declare const DragAndDrop: ({ text, description, onAccept, onReject, multiple, accept, maxSize, id, className, style, sx, "data-test-id": dataTestId, }: DragAndDropProps) => ReactElement; export default DragAndDrop;