import { type DynamicContext } from 'ag-charts-core'; import type { HighlightNodeDatum } from '../../core/eventsHub'; import type { ChartRegistry } from '../../module/moduleContext'; /** * Manages the actively highlighted series/datum for a chart. Tracks the requested highlights from * distinct dependents and handles conflicting highlight requests. */ export declare class HighlightManager { private readonly ctx; private readonly highlightStates; /** * Part of the highlighted node under the pointer, per caller (see `Series.getHighlightPart`). Kept * beside the highlight rather than on it: the highlighted datum rolls up unchanged, so consumers * that don't care about parts are unaffected, and only a caller supplying a part makes the * highlight sensitive to it. */ private readonly highlightParts; private readonly pendingUnhighlights; unhighlightDelay: number; private static readonly HIGHLIGHT_CHANGE_EVENT; constructor(ctx: DynamicContext); private highlightInViewport; updateHighlight(callerId: string, highlightedDatum?: HighlightNodeDatum, delayed?: boolean, inViewport?: boolean, highlightPart?: string): void; private maybeEmitChange; private applyPendingUnhighlight; getActiveHighlight(): HighlightNodeDatum | undefined; /** Part of the active highlight, as reported by the caller that owns it. */ getActiveHighlightPart(): string | undefined; destroy(): void; private isEqual; private idsMatch; private pointsMatch; private pointsAreEqual; }