import { type AdaptiveCardChartColorSet, type AdaptiveCardChartDataPoint, type AdaptiveCardChartSegment, type AdaptiveCardChartStackedBar } from '../adaptive-card-types';
export interface ColoredDatum {
    name: string;
    value: number;
    color: string;
    legend?: string;
}
export declare function pointValue(point: {
    y?: number;
    value?: number;
}): number;
export declare function segmentValue(segment: Pick<AdaptiveCardChartSegment, 'size' | 'value'>): number;
export declare function buildColoredData(data: Array<AdaptiveCardChartDataPoint> | undefined, colorSet: AdaptiveCardChartColorSet | undefined, explicitColor: string | undefined): Array<ColoredDatum>;
export interface ChartSeries {
    key: string;
    color: string;
}
/** @deprecated Use {@link ChartSeries}; kept as an alias while callers migrate. */
export type LineSeries = ChartSeries;
export declare function buildGroupedData(data: Array<AdaptiveCardChartDataPoint> | undefined, colorSet: AdaptiveCardChartColorSet | undefined, explicitColor: string | undefined): {
    rows: Array<Record<string, string | number>>;
    series: Array<ChartSeries>;
};
export declare function buildStackedBarData(data: Array<AdaptiveCardChartStackedBar> | undefined, colorSet: AdaptiveCardChartColorSet | undefined): {
    rows: Array<Record<string, string | number>>;
    series: Array<ChartSeries>;
};
export interface LineData {
    rows: Array<Record<string, string | number>>;
    series: Array<LineSeries>;
}
export declare function buildLineData(data: Array<AdaptiveCardChartDataPoint> | undefined, colorSet: AdaptiveCardChartColorSet | undefined, explicitColor: string | undefined): LineData;
