/** * A basemap source entry from a style document. */ export type BasemapSource = { /** Source kind such as `vector` or `raster`. */ type?: string; /** Optional TileJSON URL used to resolve the source metadata. */ url?: string; /** Inline tile templates for the source. */ tiles?: string[]; /** Minimum source zoom, when supplied by the style or TileJSON. */ minzoom?: number; /** Maximum source zoom, when supplied by the style or TileJSON. */ maxzoom?: number; /** Tile size in pixels. */ tileSize?: number; /** Additional source properties are preserved verbatim. */ [key: string]: unknown; }; /** * A style layer entry used by the basemap runtime. */ export type BasemapStyleLayer = { /** Unique layer identifier. */ id: string; /** Optional concrete style layer type such as `background`, `fill`, `line`, or `raster`. */ type?: string; /** Legacy style layer id whose structural render properties are inherited. */ ref?: string; /** Referenced source identifier. */ source?: string; /** Referenced vector source-layer identifier. */ 'source-layer'?: string; /** Optional minimum zoom. */ minzoom?: number; /** Optional maximum zoom. */ maxzoom?: number; /** Optional style-spec filter expression. */ filter?: unknown[]; /** Paint properties from the source style layer. */ paint?: Record; /** Layout properties from the source style layer. */ layout?: Record; /** Additional layer properties are preserved verbatim. */ [key: string]: unknown; }; /** A style layer after legacy `ref` inheritance has been resolved. */ export type ResolvedBasemapStyleLayer = BasemapStyleLayer & { /** Concrete style layer type after optional `ref` inheritance. */ type: string; }; /** * A MapLibre or Mapbox style document consumed by the basemap runtime. */ export type BasemapStyle = { /** Style-spec version number. */ version?: number; /** Optional style metadata bag. */ metadata?: Record; /** Named source definitions used by the style. */ sources?: Record; /** Ordered list of style layers. */ layers?: BasemapStyleLayer[]; /** Additional style properties are preserved verbatim. */ [key: string]: unknown; }; /** * A style document after all sources have been normalized and TileJSON-backed * sources have been resolved. */ export type ResolvedBasemapStyle = Omit & { /** Fully resolved source definitions. */ sources: Record; /** Style layers copied into a mutable array. */ layers: ResolvedBasemapStyleLayer[]; }; /** * Load options accepted by {@link resolveBasemapStyle}. */ export type BasemapLoadOptions = { /** Base URL used to resolve relative source or tile URLs for in-memory styles. */ baseUrl?: string; /** Optional custom fetch implementation. */ fetch?: typeof fetch; /** Optional init object passed to the selected fetch implementation. */ fetchOptions?: RequestInit; /** Additional loader options are accepted for forward compatibility. */ [key: string]: unknown; } | null; /** * Resolves a basemap style input into a style object whose sources contain * directly consumable tile templates and source metadata. */ export declare function resolveBasemapStyle(style: string | BasemapStyle, loadOptions?: BasemapLoadOptions): Promise; //# sourceMappingURL=style-resolver.d.ts.map