import { type MoveOperation } from '@deephaven/grid'; import ColumnHeaderGroup from '../../ColumnHeaderGroup'; import { type FlattenedItem } from './sortable-tree/types'; import { type FlattenedIrisGridTreeItem } from './sortable-tree/utilities'; /** * Moves an item as the result of drag and drop in the visibility ordering builder * This is extracted from the component mostly for testing purposes * Drag and drop interactions are not easily testable * * @param from The item being dragged * @param to The item being dropped on * @param movedColumns The existing moved columns * @param columnHeaderGroups The column header groups pre-drag * @param flattenedItems Flattened tree items representing the list * @param selectedParentItems The user selected items in tree order. Should not include items if their parent item is selected * @param firstMovableIndex The first visible index that can be moved * @param lastMovableIndex The last visible index that can be moved * @returns Object containing the updated column header groups and updated movedColumns array * The movedColumns returned is complete and does not need to be combined with the existing movedColumns */ export declare function moveItemsFromDrop(from: FlattenedIrisGridTreeItem, to: FlattenedIrisGridTreeItem, movedColumns: readonly MoveOperation[], columnHeaderGroups: readonly ColumnHeaderGroup[], selectedParentItems: readonly FlattenedIrisGridTreeItem[], firstMovableIndex: number, lastMovableIndex: number): { groups: readonly ColumnHeaderGroup[]; movedColumns: readonly MoveOperation[]; }; export declare function moveToGroup(item: FlattenedItem, toName: string | null, columnGroups: readonly ColumnHeaderGroup[]): readonly ColumnHeaderGroup[]; //# sourceMappingURL=VisibilityOrderingBuilderUtils.d.ts.map