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;
    isReversed?: boolean;
}
export declare const calculateLegendRows: ({ items, width, horizontalPadding, verticalPadding, lineHeight, fontSize, fontWeight, isReversed, }: CalculateLegendInput) => {
    items: PositionedLegendItem[];
    height: number;
};
export {};
