import * as React from 'react'; export type UseKeyboardDragAndDropCallbacks = number> = { onCancel?: (index: TIndex) => void; onDropItem?: (currentIndex: TIndex, newIndex?: TIndex) => void; onGrabItem?: (index: TIndex) => void; onMoveItem?: (newIndex: TIndex, currentIndex: TIndex) => void; }; /** * Utility hook designed to implement keyboard accessibile drag and drop by * returning an onKeyDown handler to be passed to the drag icon button. * * @internal - You should use `useDragAndDrop` instead. */ export declare const useKeyboardDragAndDrop: (active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks) => (e: React.KeyboardEvent) => void;