import * as React from "react"; export { FileWithPath } from "file-selector"; export default function Dropzone(props: DropzoneProps & React.RefAttributes): JSX.Element; export function useDropzone(options?: DropzoneOptions): DropzoneState; export interface DropzoneProps extends DropzoneOptions { children?(state: DropzoneState): JSX.Element; } export type DropzoneOptions = Pick, PropTypes> & { accept?: string | string[]; minSize?: number; maxSize?: number; preventDropOnDocument?: boolean; noClick?: boolean; noKeyboard?: boolean; noDrag?: boolean; noDragEventsBubbling?: boolean; disabled?: boolean; onDrop?(acceptedFiles: T[], rejectedFiles: T[], event: DropEvent): void; onDropAccepted?(files: T[], event: DropEvent): void; onDropRejected?(files: T[], event: DropEvent): void; getFilesFromEvent?(event: DropEvent): Promise>; onFileDialogCancel?(): void; }; export type DropEvent = React.DragEvent | React.ChangeEvent | DragEvent | Event; export type DropzoneState = DropzoneRef & { isFocused: boolean; isDragActive: boolean; isDragAccept: boolean; isDragReject: boolean; isFileDialogActive: boolean; draggedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[]; rootRef: React.RefObject; inputRef: React.RefObject; getRootProps(props?: DropzoneRootProps): DropzoneRootProps; getInputProps(props?: DropzoneInputProps): DropzoneInputProps; }; export interface DropzoneRef { open(): void; } export interface DropzoneRootProps extends React.HTMLAttributes { refKey?: string; [key: string]: any; } export interface DropzoneInputProps extends React.InputHTMLAttributes { refKey?: string; } type PropTypes = "multiple" | "onDragEnter" | "onDragOver" | "onDragLeave";