import React, { ReactElement } from 'react'; import { DropzoneOptions } from 'react-dropzone'; import { IUploadLimits, IUploadWarn } from '../../types/file'; declare type PickPropTypes = 'preventDropOnDocument' | 'noClick' | 'noKeyboard' | 'noDrag' | 'noDragEventsBubbling' | 'onDropAccepted' | 'onDropRejected' | 'getFilesFromEvent' | 'onFileDialogCancel' | 'onDragEnter' | 'onDragOver' | 'onDragLeave'; export interface IUploadDropzoneProps extends IUploadLimits, Pick { id?: string; tabIndex?: number; className?: string; itemSize?: 'small' | 'medium'; suppressPaste?: boolean; isDisabled?: boolean; fileAcceptType?: string; onChange: (files: File[]) => void; onWarn?: (errors: IUploadWarn[]) => void; onUpload?: (files: File[]) => void; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; /** Value is passed in mainly so `onUpload` can reinstantiate with value changes */ value?: any; placeholderId?: string; buttonTitleId?: string; buttonIcon?: ReactElement; } export declare const UploadDropzone: React.FC; export {};