import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi"; import type { StyleSpecification } from "../../layers/common/mapFacade.js"; /** * Fetches the MapLibre style specification from the backend. * * @remarks * When `basemap` is defined, the style is fetched via `GET /api/v1/location/styles/{basemap}`. * When `basemap` is undefined, the backend default style is returned via `GET /api/v1/location/style`. * * The backend returns a complete MapLibre v8 style with all tile, glyph, and sprite URLs * already proxied through the GoodData API. No manual URL construction is needed on the * UI side — the returned style JSON can be passed directly to MapLibre. * * Caching is handled by the caching backend layer. Multiple calls with the same * backend instance and params will be deduplicated if the backend is wrapped with `withCaching`. * * @internal */ export declare function fetchMapStyle(backend: IAnalyticalBackend, basemap?: string, language?: string): Promise; //# sourceMappingURL=styleEndpoint.d.ts.map