import { Field, NestField } from '../../data_tree';
import { FieldHeaderRangeMap } from '../types';
import { PivotConfig } from './pivot-utils';
type LayoutEntry = {
    field: Field;
    width: number | null;
    height: number | null;
    absoluteColumnRange: [number, number];
    relativeColumnRange: [number, number];
    depth: number;
};
export type TableLayout = {
    fields: Record<string, LayoutEntry>;
    fieldHeaderRangeMap: FieldHeaderRangeMap;
    fieldLayout: (field: Field) => LayoutEntry;
    totalHeaderSize: number;
    maxDepth: number;
};
export declare function getTableLayout(rootField: NestField): TableLayout;
/**
 * Adjusts a table layout to account for pivot column expansion.
 * Pivot fields may have more columns than their original nested structure.
 *
 * @param layout The original table layout
 * @param pivotConfigs Map of field keys to their pivot configurations
 * @returns Adjusted layout with correct column counts for pivot fields
 */
export declare function adjustLayoutForPivots(layout: TableLayout, pivotConfigs: Map<string, PivotConfig>): TableLayout;
export {};
