export type BrowserRuntimeMode = 'development' | 'production'; export type BrowserRuntimeAssetDeclaration = { /** Bare or virtual specifier used by authored/generated browser modules. */ specifier: string; /** Integration, processor, or core subsystem that owns this runtime asset. */ owner: string; /** Source import path used to build or resolve the runtime asset. */ importPath: string; /** Concrete browser URL emitted or served for this runtime asset. */ publicPath: string; /** Runtime mode this declaration applies to. Omit when the URL is mode-independent. */ mode?: BrowserRuntimeMode; /** Specifiers that should be treated as external while building this runtime asset. */ externals?: readonly string[]; }; export type BrowserRuntimeAsset = BrowserRuntimeAssetDeclaration & { externals: readonly string[]; }; export type BrowserRuntimeManifest = { assets: readonly BrowserRuntimeAsset[]; bySpecifier: ReadonlyMap; }; export declare class BrowserRuntimeManifestConflictError extends Error { readonly specifier: string; readonly existing: BrowserRuntimeAsset; readonly incoming: BrowserRuntimeAsset; constructor(specifier: string, existing: BrowserRuntimeAsset, incoming: BrowserRuntimeAsset); } export declare function createBrowserRuntimeManifest(declarations?: readonly BrowserRuntimeAssetDeclaration[]): BrowserRuntimeManifest; export declare function mergeBrowserRuntimeManifests(...manifests: Array): BrowserRuntimeManifest; export declare function getBrowserRuntimeSpecifierMap(manifest: BrowserRuntimeManifest): ReadonlyMap; /** Resolves a runtime public URL for an exact specifier. */ export declare function resolveRuntimeSpecifierPublicPath(specifier: string, publicPathsBySpecifier: ReadonlyMap): string | undefined; /** Resolves a manifest-owned runtime public URL for an exact specifier. */ export declare function resolveBrowserRuntimePublicPath(specifier: string, manifest: BrowserRuntimeManifest): string | undefined;