import React from "react"; import { ConnectDropTarget } from "react-dnd"; import { DragObjectWithType } from "../../types"; export type DroppableChildrenFunction = (params: { isDragging: boolean; isOver: boolean; isDroppable: boolean; drop: ConnectDropTarget; }) => React.ReactElement; export type DroppableIsDroppablePropType = (item: any) => boolean; export type DroppableIsVisiblePropType = (params: { type: string; item: any; isDragging: boolean; }) => boolean; export interface DragObjectWithTypeWithTarget extends DragObjectWithType { id?: string; type: string; target: string[] | null | undefined; } export type DroppableOnDropPropType = (item: DragObjectWithTypeWithTarget) => void; export interface DroppableProps { type: string; children: DroppableChildrenFunction; isDroppable?: DroppableIsDroppablePropType; isVisible?: DroppableIsVisiblePropType; onDrop: DroppableOnDropPropType; } declare const _default: React.MemoExoticComponent<(props: DroppableProps) => React.ReactElement> | null>; export default _default;