import { default as React, ReactNode } from 'react'; export type UploadType = 'drag_and_drop' | 'selection'; export type UploadProps = { /** * The contents of the Upload */ content: ReactNode; /** * The contents of the Upload on drag */ activeDragContent: ReactNode; /** * Handler that is called when a file is submitted */ onUpload(files: File[], uploadType: UploadType): void | Promise; /** * Illustration to use instead of the default icon */ illustration?: ReactNode; /** * Whether the input should allow multiple file * @default false */ multiple?: boolean; /** * Whether the Upload is invalid. * @default false */ isInvalid?: boolean; /** * className for the element */ className?: string; /** * One or more unique file type specifiers describing file types to allow. * Cf https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers */ accept?: string; }; export declare const Upload: ({ className, content, activeDragContent, onUpload, illustration, multiple, isInvalid, accept, ...rest }: UploadProps) => React.JSX.Element; //# sourceMappingURL=Upload.d.ts.map