import type { ColorRuleProps } from '../../../core/types/color-rule.js'; import type { HistogramSeries } from '../../../histogram/types/histogram.js'; /** * Pre-resolves histogram color rules to XY-compatible color-only rules. * * The histogram assigns palette colors per-series with an incrementing index * (each matching series gets the next color from the palette). * The XY chart's bar series always picks index 0 for colorPalette rules, * so we resolve palettes here to match histogram behavior. * * Rules with a direct `color` value are passed through unchanged (with the * default valueAccessor applied). Rules with `colorPalette` are expanded into * one per-series `equals` rule with the resolved color string. * * Invalid palette names are silently skipped so that partially-typed values * in a CodeEditor do not crash the chart. */ export declare function resolveHistogramColorRules(seriesData: HistogramSeries[], colorRules: ColorRuleProps[]): ColorRuleProps[];