import type { ChartColorLegend, ChartKey, ChartLegendPlacement } from './types.js'; import type { ControlledSignal } from './interaction-signal.js'; export interface InteractiveColorLegendChange { type: 'toggle'; value: TValue; visible: boolean; } export interface InteractiveColorLegendItemContext { readonly visible: boolean; } export interface InteractiveColorLegendOptions { visible: ControlledSignal>; placement?: ChartLegendPlacement; ariaLabel?: string; itemWidth?: number; format?: (value: TValue) => string; itemAriaLabel?: (value: TValue, context: InteractiveColorLegendItemContext) => string; emptyLabel?: string; } export declare function interactiveColorLegend(options: InteractiveColorLegendOptions): ChartColorLegend;