/**
 * Derives pivot configuration from a saved chart's configuration and metric query
 * This enables consistent pivoting across all chart types
 */
import { type ItemsMap } from '../types/field';
import type { MetricQuery } from '../types/metricQuery';
import type { PivotConfig, PivotConfiguration } from '../types/pivot';
import { type SavedChartDAO } from '../types/savedCharts';
export declare function derivePivotConfigurationFromChart(savedChart: Pick<SavedChartDAO, 'chartConfig' | 'pivotConfig'>, metricQuery: MetricQuery, fields: ItemsMap): PivotConfiguration | undefined;
/**
 * Derives a PivotConfiguration from a PivotConfig (the lightweight UI config)
 * without requiring a full SavedChartDAO shape. Use this when you have a PivotConfig
 * from a non-chart context (e.g. ad-hoc exports).
 */
export declare function derivePivotConfigurationFromPivotConfig(pivotConfig: PivotConfig, metricQuery: MetricQuery, fields: ItemsMap): PivotConfiguration | undefined;
//# sourceMappingURL=derivePivotConfigFromChart.d.ts.map