import * as React from "react"; import { UploadOptions } from "@rpldy/shared"; type DropResult = FileList | unknown[] export type GetFilesMethod = () => Promise; export type DropHandlerMethod = (e: DragEvent, getFiles: GetFilesMethod) => DropResult | Promise; export type ShouldRemoveDragOverMethod = (e: DragEvent) => boolean; export type ShouldHandleDragMethod = (e: DragEvent) => boolean; export type ShouldHandleDrag = boolean | ShouldHandleDragMethod; export interface UploadDropZoneProps extends UploadOptions { className?: string; id?: string; onDragOverClassName?: string; dropHandler?: DropHandlerMethod; htmlDirContentParams?: Record; shouldRemoveDragOver?: ShouldRemoveDragOverMethod; shouldHandleDrag?: ShouldHandleDrag; enableOnContains?: boolean; noContainCheckForDrag?: boolean; extraProps?: Record; children?: React.JSX.Element | React.JSX.Element[]; } export const UploadDropZone: React.ComponentType; export default UploadDropZone;