import React from "react"; import { Draggable, DropTarget } from "./data"; export interface DragDropProviderProps { children: React.ReactNode; /** * Callback fired when an item is dropped. * * Provides data about the dragged item and the drop target (if any) as arguments. */ onDrop?: (args: { dragged: Draggable; target: DropTarget | null; }) => void; } type DragDropContextType = { /** Identifier of the context instance. */ contextId: symbol; }; export declare function useDragDropContext(): DragDropContextType | null; export declare const DragDropProvider: ({ children, onDrop, }: DragDropProviderProps) => React.JSX.Element; export {};