/** * seriesAdapter — converts mui-native ChartSeries[] into the flat arrays * expected by react-native-gifted-charts BarChart / LineChart. * * @RN-DEVIATION gifted-charts does not have a grouped-bar API that accepts * an array of series objects. For grouped bars we interleave data items with * explicit `spacing` overrides and inject a group spacer item between groups. */ import type { ChartSeries, GiftedBarDataItem, GiftedLineDataItem } from './types'; /** * Single-series bar chart data. */ export declare function adaptBarSeries(series: ChartSeries[], fallbackColors: string[]): GiftedBarDataItem[]; /** * Multi-series grouped bar chart data. * gifted-charts grouped bar accepts a flat array where each "group" is * represented by a set of items differentiated by `stacked` or by rendering * multiple BarChart components. We use the `barData` array approach and * encode grouping via explicit `spacing` between groups. */ export declare function adaptGroupedBarSeries(series: ChartSeries[], fallbackColors: string[], barWidth: number, barGap: number): GiftedBarDataItem[]; /** * gifted-charts LineChart accepts `data` (primary series) + `data2`, `data3`… * We adapt to a primary + secondary structure for the first two series; * additional series are dropped with a console.warn in DEV. */ export declare function adaptLineSeries(series: ChartSeries[], fallbackColors: string[]): { data: GiftedLineDataItem[]; data2?: GiftedLineDataItem[]; color: string; color2?: string; }; export declare function computeYBounds(series: ChartSeries[], configMin?: number, configMax?: number): { minValue: number; maxValue: number; }; //# sourceMappingURL=seriesAdapter.d.ts.map