/** * What the persistence code needs to know about one leaf column, resolved the way TanStack resolves it * (`core/column.js`, `features/RowSorting.js`, v8.21.3), because a saved value has to be checked against the * columns before the table exists. U-I01 pins this file against a real table. */ export interface LeafColumnInfo { id: string; canSort: boolean; canMultiSort: boolean; /** Whether the column settings popover may hide it (ASMA-8695: a saved visibility never holds a column that cannot). */ canHide: boolean; } /** The parts of a TanStack column definition that decide a column's id and whether it can sort. */ export interface ColumnDefLike { id?: string; accessorKey?: unknown; accessorFn?: unknown; header?: unknown; enableSorting?: boolean; enableMultiSort?: boolean; enableHiding?: boolean; columns?: readonly ColumnDefLike[]; } export interface ColumnResolutionOptions { defaultColumn?: ColumnDefLike; enableSorting?: boolean; enableMultiSort?: boolean; enableHiding?: boolean; } /** Leaf columns in definition order (group columns flattened), with the ids TanStack gives them. */ export declare const getLeafColumnInfos: (columns: readonly ColumnDefLike[], options?: ColumnResolutionOptions) => LeafColumnInfo[];