export interface PackAssetStore { /** The asset at `relPath` inside the pack `vendor`'s directory (e.g. `client/clerk.browser.js`), * as a Response carrying the bytes and a content type — or null when the pack ships no such * file. `relPath` is confined to the pack's own tree: a traversal never resolves. */ fetch(vendor: string, relPath: string): Promise; } export declare function assetContentType(relPath: string): string; /** A relative path confined to a pack's tree: no absolute, no `..`, no empty segment. */ export declare function confinedAssetPath(relPath: string): string | null; /** The host's store: a pack-directory resolver, or a catalog root ending in a slash. */ export declare class LocalPackAssets implements PackAssetStore { private readonly twinDir; constructor(twinDir: string | ((vendor: string) => string | undefined | Promise)); fetch(vendor: string, relPath: string): Promise; } /** The bound store — the Bun shell's local tree unless a shell bound another. */ export declare function getActivePackAssets(): PackAssetStore; export declare function setActivePackAssets(store: PackAssetStore): PackAssetStore | undefined; /** `getActivePackAssets().fetch(...)` with the pack's declared fallback: the first path that exists. */ export declare function packAsset(vendor: string, ...candidates: string[]): Promise;