import type { LegendPosition } from '../props/common'; import type { CartesianGrid } from '../props/cartesian'; /** * Merges optional user `grid` with margins so the plot area clears the legend. * Only adds a side when the user has not set that side on `grid`. */ export declare function mergeCartesianGridForLegend(userGrid: CartesianGrid | undefined, legendPosition: LegendPosition, showLegend: boolean, hasLegendContent: boolean): CartesianGrid | undefined; /** Shifts radar center / radius so a vertical legend does not cover the chart. */ export declare function radarGeometryForLegend(legendPosition: LegendPosition, showLegend: boolean, hasLegend: boolean): { center?: [string, string]; radius?: string; }; /** * ECharts legend fields: horizontal (top/bottom) with width so items wrap; * vertical (left/right) in a single column. */ export declare function echartsLegendLayoutFragment(legendPosition: LegendPosition): Record; /** Shifts pie center slightly when a side legend is shown so slices do not overlap the legend. */ export declare function pieCenterForLegend(legendPosition: LegendPosition, showLegend: boolean): [string, string] | undefined; //# sourceMappingURL=echarts-legend-layout.d.ts.map