import type { IAvailableLegends, IGeoLegendItem } from "../../types/common/legends.js"; import type { IAreaGeoData } from "../../types/geoData/area.js"; import { type ILegendSection } from "../../types/legend/model.js"; /** * Input parameters for computing area legend section. * * @internal */ export interface IComputeAreaLegendParams { layerId: string; layerName: string; geoData: IAreaGeoData; legendItems: IGeoLegendItem[]; availableLegends: IAvailableLegends; numericSymbols?: string[]; colorScaleBaseColor?: string; } /** * Computes legend section for an area layer. * * @remarks * Creates a legend section with color legend items. Supports both: * - Categorical color (segment attribute) - shows color swatches per category * - Numeric color scale (measure) - shows min/max gradient scale * - Attribute-only fallback (area attribute only) - shows configured color and attribute name * Area layers do not have size legends. * Returns null when there are no legend groups to display. * * @param params - Parameters for computation * @returns Legend section for the area layer, or null if no legend data * * @internal */ export declare function computeAreaLegend(params: IComputeAreaLegendParams): ILegendSection | null; //# sourceMappingURL=computeAreaLegend.d.ts.map