/** * The offline profile (doc 28 G14): a map for a disconnected site may only use URLs that stay on the site — * relative ones, or the origins the deployment lists. Every URL in the config is checked when it is set; a * violation is refused loudly (OFFLINE_VIOLATION) instead of failing quietly in the field. */ import type { BasemapConfig, MapConfig, MapLayer, TerrainConfig, TilesetConfig } from '../core/types.js'; import { isLocalUrl } from '../render/offline.js'; export { isLocalUrl }; export declare const allowedOrigins: (offline: MapConfig["offline"]) => string[] | null; /** Every URL a part of the config uses, with where it is, for the error message. */ export declare function configUrls(parts: { basemap?: BasemapConfig; terrain?: TerrainConfig | null; tilesets?: TilesetConfig[]; layers?: MapLayer[]; }): Array<{ where: string; url: string; }>; /** The URLs that would leave the site, or none (also none when the profile is not offline). */ export declare function offlineViolations(offline: MapConfig['offline'], parts: Parameters[0]): Array<{ where: string; url: string; }>;