import type { PropsWithChildren } from 'react'; import { ColorPalette, type ColorPaletteMode, CustomColorPalette } from '../../core/types/color-palette.js'; import { ValueRepresentation } from '../../core/types/scales.js'; import { CategoricalBarChartThresholdIndicatorProps } from '../slots/ThresholdIndicator.js'; import { CategoricalBarChartConfiguration, CategoricalBarChartProps, CategoricalBarChartSlots, CategoricalBarChartThresholdConfiguration, GroupMode, InternalCategoricalBarChartThresholdConfiguration, Layout, type InternalCategoricalBarChartConfig } from '../types/categorical-bar-chart.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): "apdex" | "apdex-inverted" | "blue" | "blue-inverted" | "blue-moss" | "blue-moss-inverted" | "blue-steel" | "blue-steel-inverted" | "blue-turquoise" | "blue-turquoise-inverted" | "brown" | "brown-inverted" | "categorical" | "categorical-inverted" | "fireplace" | "fireplace-inverted" | "grey" | "grey-inverted" | "log-level" | "log-level-inverted" | "log-status" | "log-status-inverted" | "magenta" | "magenta-inverted" | "moss" | "moss-inverted" | "orange" | "orange-blue" | "orange-blue-inverted" | "orange-inverted" | "orange-petrol" | "orange-petrol-inverted" | "pear" | "pear-inverted" | "petrol" | "petrol-inverted" | "pink" | "pink-green" | "pink-green-inverted" | "pink-inverted" | "pink-purple" | "pink-purple-inverted" | "purple" | "purple-inverted" | "purple-rain" | "purple-rain-inverted" | "purple-yellow" | "purple-yellow-inverted" | "rainbow" | "rainbow-inverted" | "red" | "red-blue" | "red-blue-inverted" | "red-green" | "red-green-inverted" | "red-inverted" | "red-purple" | "red-purple-inverted" | "security-risk-level" | "security-risk-level-inverted" | "status" | "status-inverted" | "swamps" | "swamps-inverted" | "threshold" | "threshold-inverted" | "turquoise" | "turquoise-inverted" | "vulnerability-status" | "vulnerability-status-inverted" | "yellow" | "yellow-inverted" | CustomColorPalette; /** * Decides whether bars use colors sequentially or use only the first color of the color palette * @param propsColorPaletteMode - colorPaletteMode from props * @param contextColorPaletteMode - colorPaletteMode from context */ export declare function getColorPaletteMode(propsColorPaletteMode?: ColorPaletteMode, contextColorPaletteMode?: ColorPaletteMode): "multi-color" | "single-color"; /** * Builds a Layout configuration based on context and props * * @param contextLayout - layout context * @param propsLayout - layout props */ export declare function getLayoutConfiguration(contextLayout?: Layout, propsLayout?: Layout): "horizontal" | "vertical"; /** * Builds a GroupMode configuration based on context and props * * @param contextGroupMode - group mode context * @param propsGroupMode - group mode props */ export declare function getGroupModeConfiguration(contextGroupMode?: GroupMode, propsGroupMode?: GroupMode): GroupMode; /** * Builds a ValueRepresentation configuration based on context and props * * @param contextValueRepresentation - value representation context * @param propsValueRepresentation - value representation props */ export declare function getValueRepresentationConfiguration(contextValueRepresentation?: ValueRepresentation, propsValueRepresentation?: ValueRepresentation): "absolute" | "relative"; export declare function getThresholdsConfig(contextThresholds: CategoricalBarChartThresholdConfiguration[] | undefined, slotsThresholds: CategoricalBarChartThresholdIndicatorProps[]): InternalCategoricalBarChartThresholdConfiguration[]; /** * Build categorical bar chart configuration. * * @param props - config from props * @param contextConfig - config from context * @param slots - config from components slots * @returns RequiredCategoricalBarChartConfiguration */ export declare function buildCategoricalBarChartConfig(props: PropsWithChildren, contextConfig: CategoricalBarChartConfiguration, slots: CategoricalBarChartSlots): InternalCategoricalBarChartConfig; /** * 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 - CategoricalBarChartConfiguration */ export declare function deserializeConfig(serializedConfig: string): CategoricalBarChartConfiguration; //# sourceMappingURL=categorical-config.d.ts.map