import * as React from 'react'; import { DropEvent, DropzoneProps, FileRejection } from 'react-dropzone'; import { BoxPropsOf } from '../../box'; import { InputVariantColor } from '../enums'; import { UPLOADER_SIZE } from './Uploader.style'; export type Size = { width: number; height: number; }; export type FileInfo = { id: string; name: string; size: string; url: string; type: string; path?: string; }; export type WordingType = { readonly uploaderPrompt: string; readonly uploaderLoadingPrompt: string; readonly fileDeleteLabel: string; }; export interface UploaderProps extends Omit, Omit, 'accept' | 'size' | 'value' | keyof DropzoneProps> { readonly size?: UPLOADER_SIZE; readonly value?: FileInfo | Array; readonly circle?: boolean; readonly variantColor?: InputVariantColor; readonly format?: 'image/*' | 'audio/*' | 'video/*' | string | string[]; readonly minResolution?: Size; readonly multiple?: boolean; readonly showThumbnail?: boolean; readonly isFullWidth?: boolean; readonly onDrop: (acceptedFiles: T[], fileRejections: FileRejection[], event: DropEvent) => void; readonly wording: WordingType; readonly onRemove?: (file: FileInfo) => void; } declare const Uploader: React.FC; export default Uploader;