//#region src/bundle-cache.d.ts
/**
 * Bundle disk cache (ADR 0011 amendment — foreign-namespace resilience):
 * the child tier loads base workspaces from foreign origins; this cache
 * keeps the last-known-good bytes so an origin outage degrades to stale
 * serving instead of a hard failure. One cache root, two entrances: the
 * host's `/bundles/*` proxy handler (browser traffic) and the CLI fetch
 * adapter (boot-time outbound). Keyed exactly like the staged layout —
 * `<account>/<gateway>/<rest>` — but a separate root from BOS_BUNDLE_DIR:
 * cached bytes are a resilience artifact, never a deployment (plan 043 —
 * never point a runtime's BOS_BUNDLE_DIR at another runtime's layout).
 */
declare function bundleCacheRoot(input?: {
  cacheDir?: string;
}): string;
declare function bundleCachePath(url: string, input?: {
  cacheDir?: string;
}): string | null;
declare function readBundleCache(url: string, input?: {
  cacheDir?: string;
}): Promise<Uint8Array | null>;
declare function writeBundleCache(url: string, bytes: Uint8Array, input?: {
  cacheDir?: string;
}): Promise<void>;
//#endregion
export { bundleCachePath, bundleCacheRoot, readBundleCache, writeBundleCache };
//# sourceMappingURL=bundle-cache.d.cts.map