import type { DeepPartial, InternalAgGlowOptions, NormalisedColorType } from 'ag-charts-core'; import type { HighlightState as PublicHighlightState, SelectionState as PublicSelectionState } from 'ag-charts-types'; import { HighlightState, SelectionState } from './seriesTypes'; export declare const highlightStates: HighlightState[]; export type HighlightStyleOptionKey = 'highlightedItem' | 'unhighlightedItem' | 'highlightedSeries' | 'unhighlightedSeries'; export type SelectionStyleOptionKey = 'selectedItem' | 'unselectedItem' | 'unselectedSeries'; export declare function getHighlightStyleOptionKeys(highlightState: HighlightState): HighlightStyleOptionKey[]; export declare function getSelectionStyleOptionKeys(selectionState: SelectionState): SelectionStyleOptionKey[]; type StyleMixins = { fill: NormalisedColorType; fillOpacity: number; stroke: string; strokeWidth: number; strokeOpacity: number; lineDash: number[]; lineDashOffset: number; opacity: number; }; export declare function toHighlightString(state: HighlightState): PublicHighlightState; export declare function toSelectionString(state: SelectionState | undefined): PublicSelectionState | undefined; export declare function isUnselected(state: SelectionState | undefined): boolean; export declare function isRelevantSelectionState(state: SelectionState | undefined): state is Exclude; export declare function stagedSelectionState(selectionState: SelectionState | undefined, candidateState: SelectionState | undefined): SelectionState | undefined; type HighlightOptions = Partial; export type SeriesItemHighlightStyle = HighlightOptions; /** * Merges the highlight-state buckets that apply to `highlightState`, earlier keys taking precedence. The `glow` is left * out, as the highlight layer casts it and no item style or styler takes it; {@link getHighlightGlow} reads it. */ export declare function getHighlightStyle(highlight: { [K in HighlightStyleOptionKey]?: TStyle; } | undefined, highlightState: HighlightState): TStyle; /** Merges the `glow` of the highlight-state buckets that apply to `highlightState`. */ export declare function getHighlightGlow(highlight: { [K in HighlightStyleOptionKey]?: { glow?: DeepPartial; }; } | undefined, highlightState: HighlightState): DeepPartial | undefined; /** Merges the selection-state buckets that apply to `selectionState`, earlier keys taking precedence. */ export declare function getSelectionStyle(selection: { [K in SelectionStyleOptionKey]?: TStyle; } | undefined, selectionState: SelectionState): TStyle; /** * Whether a highlight/selection bucket carries any overrides of how an item is drawn in place; an absent bucket * carries none. A `glow` that is off is no such override. */ export declare function hasStateStyle(bucket: object | undefined): boolean; export {};