import type { IGeoLayerData } from "../../context/GeoLayersContext.js"; import type { EnabledItemsByLayer } from "../../context/GeoLegendContext.js"; import type { IGeoChartConfig } from "../../types/config/unified.js"; import { type ILegendModel } from "../../types/legend/model.js"; import type { ILayerExecutionRecord } from "../../types/props/geoChart/internal.js"; /** * Options for aggregating legend sections. * * @internal */ export interface IAggregateLegendOptions { /** * Title for the entire legend panel (typically the insight title). */ title?: string; /** * Per-layer enabled legend items. * * @remarks * Map from layerId to enabled items for that layer. * If a layer is not in the map, all its items are enabled. * `null` value for a layer means all items are enabled. * Empty array means all items are disabled. */ enabledItemsByLayer?: EnabledItemsByLayer; /** * Numeric symbols used for number formatting in legends (k, M, G, T, ...). * * @remarks * When provided, legend label formatting uses these localized symbols to match * legacy GeoChart behavior. */ numericSymbols?: string[]; /** * Chart-level configuration used for layer color fallback. */ chartConfig?: IGeoChartConfig; } export declare function aggregateLegend(layerExecutions: ILayerExecutionRecord[], layers: Map, options?: IAggregateLegendOptions): ILegendModel; //# sourceMappingURL=aggregateLegend.d.ts.map