import * as React from "react"; import { ConnectDropTarget } from "react-dnd"; import { FieldLayoutPositionType, Container, DropTargetType, DragObjectWithType } from "../../../types"; export type DroppableChildrenFunction = (params: { isDragging: boolean; isOver: boolean; item: any; drop: ConnectDropTarget; }) => React.ReactElement; export type DroppableDragObject = DragObjectWithType; export interface DroppableDropResult { [key: string]: any; } export interface DroppableCollectedProps { item: any; isOver: boolean; } export interface IsVisibleCallableParams { type: string; isDragging: boolean; ui: DropTargetType; id?: string; pos: FieldLayoutPositionType; container?: Container; } export interface IsVisibleCallable { (params: IsVisibleCallableParams): boolean; } export interface DragObjectWithFieldInfo extends DragObjectWithType { ui: DropTargetType; name: string; id?: string; pos: FieldLayoutPositionType; container?: Container; } export interface OnDropCallable { (item: DragObjectWithFieldInfo): DroppableDropResult | undefined; } export interface DroppableProps { type?: string; children: DroppableChildrenFunction; isDragging?: boolean; isDroppable?: (item: any) => boolean; isVisible?: IsVisibleCallable; onDrop?: OnDropCallable; } export declare const Droppable: React.ComponentType;