import { SGNode, type SGContext } from './node.js'; import { Supergroup } from './collection.js'; import { type DimInput, type NormalDim } from './dims.js'; export interface GroupOpts { root?: 'none' | 'synthetic'; excludeValues?: unknown[]; } /** Map-identity form of a key: Dates compare by value (es6-branch fix) */ export declare function mapKey(key: unknown): unknown; export declare function groupLevel(records: R[], dim: NormalDim, parent: SGNode | null, ctx: SGContext, depth: number, idPrefix: string, opts: GroupOpts): SGNode[]; export declare function regroupNode(node: SGNode, dim: DimInput, opts?: GroupOpts): SGNode[]; export declare function supergroup(records: R[], dims: DimInput | DimInput[], opts?: GroupOpts): Supergroup;