/** The move reported through StackedList's `onReorder`. */ export interface StackedListMove { /** The moved row's id (`StackedListItem.id`, or its array index when the item has no id). */ id: string | number; /** The row's index in the CURRENT `items` array. */ fromIndex: number; /** The row's index once the move is applied (remove at fromIndex, insert at toIndex). */ toIndex: number; /** Row now directly above, null = top of the list. */ afterId: string | number | null; /** Row now directly below, null = bottom of the list. */ beforeId: string | number | null; } /** * Compute the StackedListMove for a drop. `ids` is the row identity per CURRENT array position * (item.id, or the array index for id-less rows), `fromIndex` the dragged row's position, and * `insertionIndex` the drop position over the list with the dragged row excluded (exactly what * the DnD layer reports). Returns null when `fromIndex` is out of range (a stale drop). */ export declare function listMoveFor(ids: readonly (string | number)[], fromIndex: number, insertionIndex: number): StackedListMove | null; //# sourceMappingURL=stacked-lists.reorder.d.ts.map