import { ColDef, Column } from '@ag-grid-community/core'; import { HashMap } from '../../utils/types'; import { PivotColumnData } from './grid.store.types'; import { DatoGridColumnDef, DatoGridOptions } from '../grid/grid-v2.types'; export declare function getColumnsSizes(columns: Column[], original?: boolean): HashMap; /** * Take pivoted value field if pivot column, * or field of the colDef, * or group field form showRowGroup if its agg column */ export declare function getColField(colDef: ColDef): string; export declare function tryParsePivotValue(str: string): PivotColumnData | undefined; /** * ag-grid 22 nested each pivot row total column in one group per pivot level, and the innermost group gets the "Total" header, * but ag-grid 27 adds the column without groups. * Turn the column def into those groups in place, as processSecondaryColDef can't replace it in its parent's children. * This relies on ag-grid checking for children before it calls processSecondaryColDef, so re-check it when moving to processPivotResultColDef. */ export declare function wrapPivotRowTotalColDef(colDef: ColDef, headerName: string, pivotLevels: number): void; export declare function isHtmlAllowedForCol(gridOptions: DatoGridOptions, colDef: DatoGridColumnDef): boolean;