import * as type_fest from 'type-fest'; import { d as GlyphRange, T as TileInfo, c as TileFormat } from '../types-yLQy3AKR.js'; import '@maplibre/maplibre-gl-style-spec'; import 'geojson'; import 'stream'; import 'readable-stream'; import 'events'; /** * @param {string} path * @returns */ declare function getResourceType(path: string): "sprite" | "style" | "tile" | "glyph"; /** * Determine the content type of a file based on its extension. * * @param {string} path */ declare function getContentType(path: string): "application/json; charset=utf-8" | "application/x-protobuf" | "image/png" | "image/jpeg" | "image/webp" | "application/vnd.mapbox-vector-tile"; /** * Get the filename for a tile, given the TileInfo * * @param {import("type-fest").SetRequired} tileInfo * @returns */ declare function getTileFilename({ sourceId, z, x, y, format }: type_fest.SetRequired): string; /** * Get a filename for a sprite file, given the sprite id, pixel ratio and extension * * @param {{ id: string, pixelRatio: number, ext: '.json' | '.png'}} spriteInfo */ declare function getSpriteFilename({ id, pixelRatio, ext }: { id: string; pixelRatio: number; ext: ".json" | ".png"; }): string; /** * Get the filename for a glyph file, given the fontstack and range * * @param {object} options * @param {string} options.fontstack * @param {import("../writer.js").GlyphRange} options.range */ declare function getGlyphFilename({ fontstack, range }: { fontstack: string; range: GlyphRange; }): string; /** * Get the URI template for the sprites in the style */ declare function getSpriteUri(id?: string): string; /** * Get the URI template for tiles in the style * * @param {object} opts * @param {string} opts.sourceId * @param {import("../writer.js").TileFormat} opts.format * @returns */ declare function getTileUri({ sourceId, format }: { sourceId: string; format: TileFormat; }): string; /** * Replaces variables in a string with values provided in an object. Variables * in the string are denoted by curly braces, e.g., {variableName}. * * @param {string} template - The string containing variables wrapped in curly braces. * @param {Record} variables - An object where the keys correspond to variable names and values correspond to the replacement values. * @returns {string} The string with the variables replaced by their corresponding values. */ declare function replaceVariables(template: string, variables: Record): string; declare const URI_SCHEME: "smp"; declare const URI_BASE: string; declare const STYLE_FILE: "style.json"; declare const SOURCES_FOLDER: "s"; declare const FONTS_FOLDER: "fonts"; declare const GLYPH_URI: string; export { FONTS_FOLDER, GLYPH_URI, SOURCES_FOLDER, STYLE_FILE, URI_BASE, URI_SCHEME, getContentType, getGlyphFilename, getResourceType, getSpriteFilename, getSpriteUri, getTileFilename, getTileUri, replaceVariables };