import * as React from 'react'; export interface DragState { draggedIndex: number | null; draggedHeight: number | null; itemHeights: Map; closestEdge: 'top' | 'bottom' | 'left' | 'right' | null; targetIndex: number | null; } export interface DragContextValue extends DragState { registerItem: (index: number, height: number) => void; setDraggedIndex: (index: number | null) => void; setDraggedHeight: (height: number | null) => void; setClosestEdge: (edge: 'top' | 'bottom' | 'left' | 'right' | null) => void; setTargetIndex: (index: number | null) => void; } export declare const DragContext: React.Context; export declare const useDragContext: () => DragContextValue;