import { type IInsightLayerDefinition } from "@gooddata/sdk-model"; import { type IGeoLayer } from "../types/layers/index.js"; /** * Layer type constants for geo visualizations * * @internal */ export declare const GEO_LAYER_TYPES: { readonly PUSHPIN: "pushpin"; readonly AREA: "area"; }; /** * Converts an IInsightLayerDefinition to an IGeoLayer based on its type * * @param insightLayer - The insight layer definition to convert * @returns The converted geo layer, or null if the layer type is not supported * * @remarks * Supported layer types: * - "pushpin" - Converts to IGeoLayerPushpin * - "area" - Converts to IGeoLayerArea (requires area attribute) * * @internal */ export declare function insightLayerToGeoLayer(insightLayer: IInsightLayerDefinition): IGeoLayer | null; /** * Converts an array of IInsightLayerDefinition to IGeoLayer array * * @param insightLayers - Array of insight layer definitions * @returns Array of converted geo layers (excluding unsupported types) * * @remarks * Layers with unsupported types or invalid configurations are filtered out. * * @internal */ export declare function insightLayersToGeoLayers(insightLayers: IInsightLayerDefinition[]): IGeoLayer[]; /** * Converts an IGeoLayer to an IInsightLayerDefinition. * * @remarks * This is the reverse of {@link insightLayerToGeoLayer}. It maps domain-specific * geo layer fields (latitude, longitude, area, color, etc.) into generic insight * buckets and properties suitable for insight persistence. * * Color mapping predicates (functions) are stripped during conversion because they * are not serializable. Only `id` + `color` pairs are preserved in properties. * * @param layer - The geo layer to convert * @returns The converted insight layer definition * * @internal */ export declare function geoLayerToInsightLayer(layer: IGeoLayer): IInsightLayerDefinition; /** * Converts an array of IGeoLayer to IInsightLayerDefinition array. * * @remarks * This is the reverse of {@link insightLayersToGeoLayers}. * * @param layers - Array of geo layers to convert * @returns Array of converted insight layer definitions * * @internal */ export declare function geoLayersToInsightLayers(layers: IGeoLayer[]): IInsightLayerDefinition[]; //# sourceMappingURL=layerConversion.d.ts.map