export function finishMakeLocalProgress(): void; /** * @param {string} src * @param {string} search * @param {string} replacement * @returns {string} */ export function replaceAll(src: string, search: string, replacement: string): string; /** * @param {string} path * @param {string} basePath * @returns {string} */ export function getRelativeToBasePath(path: string, basePath: string): string; /** * @param {string} path * @returns {string} */ export function normalizeWebPath(path: string): string; /** * @param {string} path * @returns {string} */ export function ensureTrailingSlash(path: string): string; /** * @param {string} src * @param {string} [base] - Vite base path (e.g. "/" or "/app/"). When provided, * ext/ paths are made absolute so they resolve correctly under SPA routing. * @returns {string} */ export function fixRelativeNewURL(src: string, base?: string): string; /** * @param {string} src * @returns {string} */ export function fixDracoRangeQueryProbe(src: string): string; /** * @param {string} path * @param {string|Buffer} content * @returns {string} */ export function getValidFilename(path: string, content: string | Buffer): string; /** * @param {string} url * @returns {Promise} */ export function downloadText(url: string): Promise; /** * @param {string} url * @returns {Promise} */ export function downloadBinary(url: string): Promise; /** * @param {LocalizationContext} context * @param {string} url * @param {unknown} err */ export function recordFailedDownload(context: LocalizationContext, url: string, err: unknown): void; /** * @param {string} url * @returns {string} */ export function getShortUrlName(url: string): string; export class Cache { /** @type {Map} */ __cache: Map; /** * @param {string} key * @param {Buffer|string} value */ addToCache(key: string, value: Buffer | string): void; /** * @param {string} key * @returns {Buffer|string|null} */ getFromCache(key: string): Buffer | string | null; get map(): Map>; } export type LocalizationContext = import("./local-files-types.js").LocalizationContext;