import { LegendConfig, LegendItem } from './types';
/** HTML-based chart legend overlay positioned relative to a container */
export declare class ChartLegend {
    private element;
    private items;
    private toggleCallback;
    constructor(container: HTMLElement, config?: LegendConfig);
    /** Render legend items with color indicators and labels */
    update(items: LegendItem[]): void;
    /** Register a callback invoked when a legend item is clicked */
    onToggle(callback: (index: number, active: boolean) => void): void;
    /** Remove the legend element from the DOM */
    destroy(): void;
    private handleToggle;
}
//# sourceMappingURL=legend.d.ts.map