import type { LegendItem } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/visualizations/echarts/cartesian/model/types";
import type { PositionedLegendItem } from "./types";
interface CalculateLegendInput {
    items: LegendItem[];
    width: number;
    horizontalPadding?: number;
    verticalPadding?: number;
    lineHeight?: number;
    fontSize?: number;
    fontWeight?: number;
    legendItemMarginRight?: number;
    isReversed?: boolean;
}
export declare const calculateLegendRows: ({ items, width, horizontalPadding, verticalPadding, lineHeight, fontSize, fontWeight, legendItemMarginRight, isReversed, }: CalculateLegendInput) => {
    height: number;
    width: number;
    items: PositionedLegendItem[];
};
export declare const calculateLegendRowsWithColumns: ({ items, width, horizontalPadding, verticalPadding, lineHeight, fontSize, fontWeight, legendItemMarginRight, isReversed, }: CalculateLegendInput) => {
    height: number;
    width: number;
    items: PositionedLegendItem[];
};
export {};
