import type { IColorStrategy } from "@gooddata/sdk-ui-vis-commons"; import type { IGeoCommonData } from "../../types/geoData/common.js"; import type { IGeoLegendResult } from "../registry/adapterTypes.js"; /** * Options for computing legend * * @internal */ export interface IComputeLegendOptions { /** * The layer type for legend item typing */ layerType: "pushpin" | "area"; /** * Whether the layer has size data (only pushpin supports this) */ hasSizeData: boolean; } /** * Computes legend data from geo data and color strategy. * * @remarks * This utility is shared by both pushpin and area adapters to avoid code duplication. * It extracts unique segments and creates legend items with colors from the color strategy. * * @param geoData - The geo data containing segment information * @param colorStrategy - Color strategy for getting colors by index * @param options - Options specifying layer type and size availability * @returns Legend result with items and availability flags * * @internal */ export declare function computeLegend(geoData: IGeoCommonData, colorStrategy: IColorStrategy, options: IComputeLegendOptions): IGeoLegendResult; //# sourceMappingURL=computeLegend.d.ts.map