import type { Key } from '../interface'; import type { DefaultRecordType, GetRowKey } from '../../vc-table/interface'; export declare function reorderList(list: T[], fromIndex: number, toIndex: number): T[]; /** Move item so it ends at toIndex (after removal, indices adjust). */ export declare function moveItem(list: T[], fromIndex: number, toIndex: number): T[]; export interface SiblingInfo { parent: RecordType | null; siblings: RecordType[]; index: number; path: number[]; } export declare function findSiblingInfo(data: RecordType[], targetKey: Key, getRowKey: GetRowKey, childrenColumnName: string): SiblingInfo | null; export declare function areSiblingKeys(data: RecordType[], fromKey: Key, toKey: Key, getRowKey: GetRowKey, childrenColumnName: string): boolean; /** * Reorder two nodes that share the same parent. Returns null if not siblings. */ export declare function reorderTreeSiblings(data: RecordType[], fromKey: Key, toKey: Key, getRowKey: GetRowKey, childrenColumnName: string, place?: 'before' | 'after'): RecordType[] | null; export declare function reorderByKeys(list: T[], fromKey: Key, toKey: Key, place: 'before' | 'after', getKey: (item: T, index: number) => Key): { list: T[]; fromIndex: number; toIndex: number; item: T; } | null; export declare function hasGroupColumns(columns: readonly any[]): boolean;