import type { AnnotationsConfigProperties } from '../../core/components/annotations/types/annotations-config-properties.js'; import { ColorPalette, CustomColorPalette } from '../../core/types/color-palette.js'; import type { HistogramAnnotationsConfigProps } from '../components/annotations-histogram/types.js'; import { HistogramThresholdIndicatorProps } from '../slots/ThresholdIndicator.js'; import { HistogramChartConfigProperties, HistogramChartConfigProps, HistogramChartConfiguration, HistogramChartLegendConfig, HistogramChartLegendProps, HistogramChartSlots, HistogramChartTooltipProps, HistogramChartXAxisConfig, HistogramChartXAxisProps, HistogramChartYAxisConfig, HistogramChartYAxisProps, HistogramThresholdConfig, HistogramThresholdsConfig } from '../types/histogram-props.js'; import { 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): "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; 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; export declare function getAnnotationsConfiguration(contextAnnotations: AnnotationsConfigProperties | undefined, slotsAnnotations: HistogramAnnotationsConfigProps | undefined): HistogramAnnotationsConfigProps | undefined; /** * 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?: HistogramThresholdIndicatorProps[]): 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; //# sourceMappingURL=histogram-configuration.d.ts.map