import type { IAnalyticalBackend } from "@gooddata/sdk-backend-spi"; import type { Map as MapLibreMap, Popup } from "../../layers/common/mapFacade.js"; import { type IMapOptions } from "../../types/map/provider.js"; import { type IMapLibreLocale } from "../../utils/mapLocale.js"; import { type IMapInteractionOptions } from "./mapConfig.js"; /** * Result of map initialization * * @internal */ export interface IMapInitResult { map: MapLibreMap; tooltip: Popup; maplibregl: typeof import("maplibre-gl"); } interface IMapInitializationOptions extends IMapOptions { dragRotate?: IMapInteractionOptions["dragRotate"]; pitchWithRotate?: IMapInteractionOptions["pitchWithRotate"]; touchZoomRotate?: IMapInteractionOptions["touchZoomRotate"]; } /** * Initialize MapLibre GL map instance with options * * @remarks * This function handles the creation of a MapLibre GL map instance with all necessary * configuration. It dynamically imports maplibre-gl to avoid bundling issues, points MapLibre * at the worker this package ships (see `mapWorker.ts`), sets up the map with safe default * options, and ensures glyphs are properly configured for text rendering. * * @param options - Map initialization options including container, center, zoom, bounds, etc. * @param locale - Optional MapLibre locale configuration for cooperative gestures * @param backend - Optional analytical backend * @returns Promise resolving to map instance, tooltip, and maplibre-gl module * * @internal */ export declare function initializeMapLibreMap({ container, center, zoom, bounds, boundsPadding, interactive, dragRotate, pitchWithRotate, touchZoomRotate, navigation, enableGeoChartsViewportConfig, preserveDrawingBuffer, cooperativeGestures, maxZoom, style, basemap, language, }: IMapInitializationOptions, locale?: IMapLibreLocale, backend?: IAnalyticalBackend): Promise; export {}; //# sourceMappingURL=mapInitialization.d.ts.map