import type { PropsWithChildren } from 'react'; import { CustomColorPalette, ColorPalette } from '../../core/types/color-palette.js'; import { PieDonutConfig, PieChartSlots, PieChartProps, PieChartLegendConfig, PieChartContextConfig, GroupConfig, DonutChartSlots } from '../types/pie-chart.config.js'; /** * Builds a ColorPalette configuration based on context and props * @param contextColorPalette - color palette context * @param propsColorPalette - color palette props */ export declare function getColorPaletteConfiguration(contextColorPalette?: ColorPalette | CustomColorPalette, propsColorPalette?: ColorPalette | CustomColorPalette): ColorPalette | CustomColorPalette; /** * Builds a GroupConfig based on context and slots * * @param contextGrouping - grouping config in context * @param slotsGrouping - grouping config in slots */ export declare function getGroupingConfiguration(contextGrouping?: GroupConfig, slotsGrouping?: Partial): GroupConfig; /** * Builds a LegendConfiguration configuration based on context and props * * @param contextLegendConfig - legend config context * @param slotsLegendConfig - legend config props */ export declare function getLegendConfiguration(contextLegendConfig?: PieChartLegendConfig, slotsLegendConfig?: PieChartLegendConfig): PieChartLegendConfig; /** * Build pie chart configuration. * * @param props - config from props * @param contextConfig - config from context * @param slots - config from components slots * @returns RequiredPieChartConfiguration */ export declare function buildPieChartConfig(props: PropsWithChildren, contextConfig: PieChartContextConfig, slots: PieChartSlots | DonutChartSlots): PieDonutConfig; /** * Get chart configuration merging the default one with the stringify json config. * In case there is a conflict property, default would prevail. * In case there is any parse error. It will return an empty config. * * @param serializedConfig - stringify json config * @returns - PieChartConfiguration */ export declare function deserializeConfig(serializedConfig: string): PieChartContextConfig;