import { Data } from '@dnd-kit/abstract'; import { SortableInput, Sortable } from '@dnd-kit/dom/sortable'; export { isSortable, isSortableOperation } from '@dnd-kit/dom/sortable'; import { RefObject, MutableRefObject } from 'react'; type Ref = RefObject | MutableRefObject; type RefOrValue = T | Ref | null | undefined; interface UseSortableInput extends Omit, 'handle' | 'element' | 'target'> { handle?: RefOrValue; element?: RefOrValue; target?: RefOrValue; } declare function useSortable(input: UseSortableInput): { sortable: Sortable; readonly isDragging: boolean; readonly isDropping: boolean; readonly isDragSource: boolean; readonly isDropTarget: boolean; handleRef: (element: Element | null) => void; ref: (element: Element | null) => void; sourceRef: (element: Element | null) => void; targetRef: (element: Element | null) => void; }; export { type UseSortableInput, useSortable };