import { IndicesController } from './indices.controller'; import { ListItem, Aggregation, AggregationOptions } from './types'; type PivotRowOption = { attribute: string; calculateTotals?: boolean; }; type PivotColumnOption = { attribute: string; calculateTotals?: boolean; }; type PivotValueOption = AggregationOptions; export type PivotOptions = { rows: PivotRowOption[]; columns: PivotColumnOption[]; values: PivotValueOption[]; options?: { calculateTotals?: boolean; }; }; type PivotResponseItem = { key: string; values?: Aggregation[]; columns?: Omit[]; rows?: PivotResponseItem[]; }; export type PivotResponse = PivotResponseItem; export declare function pivot(relevantData: Map, options: PivotOptions, response?: PivotResponse, parentPath?: string, indicesCtrl?: IndicesController): PivotResponse; export {};