import { Axes } from '../Axes/axes.js';
import { Visitor } from './visitor.js';
export declare class Legend implements Visitor {
    private labels;
    private svg;
    private group;
    private axis;
    private configuredLabels;
    constructor(labels: any, container?: HTMLElement);
    visit(axis: Axes): void;
    redraw(): void;
    createLegendSymbol(chartId: string, legendId: string, node: Element): void;
    updateDimensions(): void;
    updateLabels(): void;
    updateLabelPositions(selection: any, maxWidth: any): void;
    optimalColumnsRows(width: number, elementWidth: number, elementCount: number): {
        columns: number;
        rows: number;
    };
}
