import { StyleSpecification as StyleJSON } from '@maplibre/maplibre-gl-style-spec'; import { TileJSON } from './tilejson'; declare function createIdFromStyleUrl(url: string): string; /** * TODO: Mapbox styles are sometimes served with sources combined into a single * "composite" source. Since core Mapbox sources (e.g. streets, satellite, * outdoors etc) can appear in several different styles, this function should * extract them from the composite style and adjust the style layers to point to * the original source, not the composite. This will save downloading Mapbox * sources multiple times for each style they appear in. * * https://docs.mapbox.com/api/maps/styles/ */ declare function uncompositeStyle(style: StyleJSON): Promise; declare function validate(style: unknown): asserts style is StyleJSON; declare const DEFAULT_RASTER_SOURCE_ID = "raster-source"; declare const DEFAULT_RASTER_LAYER_ID = "raster-layer"; declare function createRasterStyle({ name, url, tileSize, }: { name: string; url: string; tileSize?: 256 | 512; }): StyleJSON; export declare function createVectorStyle({ name, url, vectorLayers, }: { name: string; url: string; vectorLayers: NonNullable; }): StyleJSON; export { DEFAULT_RASTER_SOURCE_ID, DEFAULT_RASTER_LAYER_ID, StyleJSON, createIdFromStyleUrl, createRasterStyle, uncompositeStyle, validate, };