import { ColorPalette, CustomColorPalette } from '../../core/types/color-palette.js'; import { HistogramThresholdProps } from '../slots/Threshold.js'; import { HistogramChartConfigProperties, HistogramChartConfigProps, HistogramChartConfiguration, HistogramChartLegendConfig, HistogramChartLegendProps, HistogramChartSlots, HistogramChartTooltipProps, HistogramChartXAxisConfig, HistogramChartXAxisProps, HistogramChartYAxisConfig, HistogramChartYAxisProps, HistogramThresholdConfig, HistogramThresholdsConfig, HistogramTooltipVariant, type HistogramZoomDomain } from '../types/histogram.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): "blue" | "brown" | "grey" | "magenta" | "orange" | "pink" | "purple" | "red" | "turquoise" | "yellow" | "status" | "categorical" | "purple-rain" | "swamps" | "fireplace" | "blue-steel" | "rainbow" | "categorical-inverted" | "purple-rain-inverted" | "swamps-inverted" | "fireplace-inverted" | "blue-steel-inverted" | "rainbow-inverted" | "log-status" | "log-level" | "apdex" | "security-risk-level" | "vulnerability-status" | "threshold" | "log-status-inverted" | "log-level-inverted" | "apdex-inverted" | "security-risk-level-inverted" | "vulnerability-status-inverted" | "threshold-inverted" | "status-inverted" | "pink-purple" | "blue-turquoise" | "moss" | "petrol" | "pear" | "pink-purple-inverted" | "blue-turquoise-inverted" | "blue-inverted" | "grey-inverted" | "moss-inverted" | "turquoise-inverted" | "pink-inverted" | "yellow-inverted" | "petrol-inverted" | "purple-inverted" | "pear-inverted" | "brown-inverted" | "red-inverted" | "magenta-inverted" | "orange-inverted" | "orange-blue" | "red-blue" | "red-purple" | "blue-moss" | "purple-yellow" | "red-green" | "orange-petrol" | "pink-green" | "orange-blue-inverted" | "red-blue-inverted" | "red-purple-inverted" | "blue-moss-inverted" | "purple-yellow-inverted" | "red-green-inverted" | "orange-petrol-inverted" | "pink-green-inverted" | CustomColorPalette; export declare function getLegendConfiguration(contextLegend: HistogramChartLegendProps | undefined, slotsLegend: HistogramChartLegendProps): HistogramChartLegendConfig; /** * Returns true if tooltipVariant is a valid TooltipVariant * @param tooltipVariant - tooltip variant */ export declare const isValidHistogramTooltipVariant: (tooltipVariant: string) => tooltipVariant is HistogramTooltipVariant; export declare function getTooltipConfiguration(contextTooltip: HistogramChartTooltipProps | undefined, slotsTooltip: HistogramChartTooltipProps): Required; /** * Builds a y-axis configuration based on slots and context * @param slotsYAxis - y axis slots * @param contextYAxis - contextXAxis */ export declare function getYAxisConfiguration(slotsYAxis: HistogramChartYAxisProps[], contextYAxis: HistogramChartYAxisProps[] | undefined): HistogramChartYAxisConfig; /** * Builds an x-axis configuration based on context and slots * @param contextXAxis - x axis context * @param slotsXAxis - x axis slots */ export declare function getXAxisConfiguration(contextXAxis: HistogramChartXAxisProps | undefined, slotsXAxis: HistogramChartXAxisProps | undefined): HistogramChartXAxisConfig; /** * Builds thresholds configuration based on context and slots * @param contextThresholds - thresholds context * @param slotsThresholds - thresholds slots */ export declare function getThresholdsConfiguration(contextThresholds?: HistogramThresholdConfig[], slotsThresholds?: HistogramThresholdProps[]): HistogramThresholdsConfig | undefined; /** * Builds infiniteZoom configuration based on context and props * @param contextConfig - * @param propsConfig - */ export declare function getInfiniteZoomConfiguration(contextConfig?: boolean, propsConfig?: boolean): boolean; /** * Builds initialZoom configuration based on context and props * @param contextConfig - * @param propsConfig - */ export declare function getInitialZoomConfiguration(contextConfig?: HistogramZoomDomain, propsConfig?: HistogramZoomDomain): HistogramZoomDomain | undefined; /** * Builds currentZoom configuration based on context and props * @param contextConfig - * @param propsConfig - */ export declare function getCurrentZoomConfiguration(contextConfig?: HistogramZoomDomain, propsConfig?: HistogramZoomDomain): HistogramZoomDomain | undefined; /** * Creates a Histogram chart configuration merging the configuration * provided in the context config, slots, and defaults. * @param slots - histogram chart slots * @param contextConfig - histogram chart context * @param histogramChartConfigProps - histogram chart props */ export declare function createHistogramConfiguration(slots: HistogramChartSlots, contextConfig: HistogramChartConfigProperties, histogramChartConfigProps: HistogramChartConfigProps): HistogramChartConfiguration; /** * 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 - Merged configuration */ export declare function deserializeConfig(serializedConfig: string): HistogramChartConfigProperties; /** * Normalizes a final Histogram config to look like the configuration object. * @param config - histogram chart config * @returns parsed histogram config */ export declare function normalizeConfig(config: HistogramChartConfiguration): HistogramChartConfigProperties;