import type { UniqueIdentifier } from "../../../types"; import { type Direction, type Rectangle } from "../../../utils"; export type ShouldSwapWorklet = (activeLayout: Rectangle, itemLayout: Rectangle, direction: Direction) => boolean; export type UseDraggableSortOptions = { childrenIds: UniqueIdentifier[]; horizontal?: boolean; onOrderChange?: (order: UniqueIdentifier[]) => void; onOrderUpdate?: (nextOrder: UniqueIdentifier[], prevOrder: UniqueIdentifier[]) => void; shouldSwapWorklet?: ShouldSwapWorklet; }; export declare const useDraggableSort: ({ horizontal, childrenIds, onOrderChange, onOrderUpdate, shouldSwapWorklet, }: UseDraggableSortOptions) => { draggablePlaceholderIndex: import("react-native-reanimated").SharedValue; draggableSortOrder: import("react-native-reanimated").SharedValue; };