import type { Color } from '../types';
export declare const LEGEND_POSITIONS: {
    readonly bottom: "bottom";
    readonly left: "left";
    readonly right: "right";
};
export declare type LegendPositions = typeof LEGEND_POSITIONS[keyof typeof LEGEND_POSITIONS];
export interface LegendLabelsConfiguration {
    text?: (legendIndex: number) => string;
}
export interface LegendConfiguration {
    display?: boolean;
    position?: LegendPositions;
    align?: 'start' | 'center' | 'end';
    labels?: LegendLabelsConfiguration;
    boxStyle?: 'rect' | 'line' | 'dash';
    /** Wether to use ChartJS legend or homemade one
    NOTE: temporary API for backward compatibility
     */
    custom?: boolean;
}
export declare type LegendVariant = 'fluid' | 'fixed';
export declare type CategoryItem = {
    color?: Color;
    borderColor?: Color;
    borderDashed?: boolean;
    label: LegendLabelsConfiguration | string | undefined;
    onClick: (index: number) => void;
    onHover?(index: number, isVisible: boolean): void;
    onLeave?(): void;
};
export declare type CategoryLegend = {
    type: 'category';
    items: CategoryItem[];
};
