import type { ColorToken } from '../../../core/types/color-palette.js'; import type { ColorRuleProps } from '../../../core/types/color-rule.js'; import type { MutableProcessingContext } from '../../processing-strategies/types/processing-types.js'; import type { BarSeriesWithDatapoints } from '../../types/xy-chart-internals.js'; import type { BarDatapoint } from '../../types/xy-chart.js'; export interface BarColorRuleState { /** * A rule's color depends only on the rule and the series, never on the * datapoint, so it is resolved once per matching rule. This keeps palette * lookups off the per-datapoint path. */ colorByRule: Map; matchedCount: number; matchedColors: Set; originalColor: ColorToken; sharedColor: string | undefined; seriesIndex: number; } export type BarColorRuleStates = Map; type BarColorRuleContext = Pick; /** * Applies the color rules to a bar datapoint that was just added to its series. * The datapoint gets the color of the last declared matching rule, and the * series color is only overridden while every datapoint added so far matched a * rule and they all share one color. */ export declare const applyColorRuleToBarDatapoint: (datapoint: BarDatapoint, series: BarSeriesWithDatapoints, context: BarColorRuleContext, states: BarColorRuleStates) => void; export {}; //# sourceMappingURL=apply-color-rule-to-bar-datapoint.d.ts.map