import type { TreeViewItem } from '../types.js'; /** * Manages drag and drop operations within the tree * * Handles the state and logic for dragging items to reorder them, * including tracking the drag source, potential drop targets, and drop position */ export declare function useTreeDragDrop(enableDragDrop: boolean, onItemMove?: (sourceId: string, targetId: string, position: 'before' | 'after' | 'inside') => void): { draggedItem: string | null; dragOverItem: string | null; dragPosition: "inside" | "after" | "before" | null; handleDragStart: (id: string) => void; handleDragOver: (id: string, position: "before" | "after" | "inside") => void; handleDragEnd: () => void; handleDrop: (targetId: string, position: "before" | "after" | "inside", treeData: TreeViewItem[]) => TreeViewItem[]; }; //# sourceMappingURL=useTreeDragDrop.d.ts.map