import type { ChartData } from '../../core/types/chart-data.js'; import type { ChartUnit } from '../../core/types/chart-unit.js'; import type { PieChartData } from '../types/pie-chart.config.js'; /** * Input accepted by {@link normalizePieData}: either the unified `ChartData` * format (paired with `labelAccessor`/`valueAccessor` and a root-level `unit`) * or the legacy `PieChartData` shape. * @internal */ export interface NormalizePieDataInput { data: ChartData | PieChartData; labelAccessor?: string; valueAccessor?: string; unit?: ChartUnit; } /** * Normalizes the public PieChart/DonutChart data props into the internal * `PieChartData` (`{ slices, unit }`) shape consumed by the rendering pipeline. * * When `labelAccessor`/`valueAccessor` are provided, the data is treated as the * unified `ChartData` array and each datapoint is mapped to a slice by resolving * the accessor strings (dot-notation supported). Otherwise the legacy * `PieChartData` is returned unchanged. * * @param input - the data-related PieChart/DonutChart props * @returns the internal `PieChartData` shape * @internal */ export declare function normalizePieData(input: NormalizePieDataInput): PieChartData;