import type { CellRead } from '../../core/grid/index.js'; import type { ColumnDef, RowNode } from '../../core/types/index.js'; export interface KeyedRows { key: string; nodes: RowNode[]; } export declare function groupsByKey(nodes: readonly RowNode[], field: ColumnDef, read: CellRead): KeyedRows[]; export declare function partitionByPath(rows: TRow[], columns: ColumnDef[], read: CellRead): Map; export interface CrossingRef { keys: string[]; measure: number; } export interface IndexShape { paths: string[][]; subtotals: string[][]; measures: number; withTotal: boolean; } export declare function crossingIndex(shape: IndexShape): Map; export interface GroupLookup { fields: ColumnDef[]; read: CellRead; idOf: (path: { columnId: string; key: string; }[]) => string; wanted: string; } export declare function rowsInGroup(nodes: RowNode[], lookup: GroupLookup): TRow[]; export declare function startsWithKeys(row: TRow, fields: ColumnDef[], read: CellRead, keys: string[]): boolean; export declare function cacheByKey(): (key: string, compute: () => unknown) => unknown; export declare function cacheByRows(): (rows: TRow[], slot: number, compute: () => unknown) => unknown; export declare function offAxis(defs: ColumnDef[], taken: string[]): { id: string; header: string; }[]; export declare function placesOf(ordered: string[]): (id: string) => number | undefined;