import type { IGeoLegendItem } from "../../types/common/legends.js"; import type { IAreaGeoData } from "../../types/geoData/area.js"; import type { IPushpinGeoData } from "../../types/geoData/pushpin.js"; import type { ILegendColorCategoryItem } from "../../types/legend/model.js"; /** * Fallback color used when no color is assigned to a legend item. * * @internal */ export declare const FALLBACK_LEGEND_COLOR = "#ccc"; /** * URI prefix for synthetic legend items representing attribute-only layers. * * @internal */ export declare const ATTRIBUTE_ONLY_URI_PREFIX = "__attribute_only__"; /** * Neutral grayscale start for segmented color scales. * * @internal */ export declare const SEGMENTED_COLOR_SCALE_MIN_COLOR = "var(--gd-palette-complementary-2)"; /** * Neutral grayscale end for segmented color scales. * * @internal */ export declare const SEGMENTED_COLOR_SCALE_MAX_COLOR = "var(--gd-palette-complementary-8)"; /** * Converts existing legend items to color category items. * * @param legendItems - Base legend items from layer output * @returns Array of color category items * * @internal */ export declare function convertToColorCategories(legendItems: IGeoLegendItem[]): ILegendColorCategoryItem[]; /** * Checks whether area geo data represents an attribute-only layer * (area attribute present, no segment or color measure). * * @internal */ export declare function isAttributeOnlyAreaData(geoData: IAreaGeoData): boolean; /** * Checks whether pushpin geo data represents an attribute-only layer * (location attribute present, no segment, color, or size measure). * * @internal */ export declare function isAttributeOnlyPushpinData(geoData: IPushpinGeoData): boolean; /** * Checks whether geo data represents an attribute-only layer based on * the layer type discriminator. * * @internal */ export declare function isAttributeOnlyGeoData(geoData: IAreaGeoData, layerType: "area"): boolean; export declare function isAttributeOnlyGeoData(geoData: IPushpinGeoData, layerType: "pushpin"): boolean; export declare function isAttributeOnlyGeoData(geoData: IAreaGeoData | IPushpinGeoData, layerType: "area" | "pushpin"): boolean; //# sourceMappingURL=legendUtils.d.ts.map