/** Errors the bundle adapter raises. All carry a stable `code` for callers. */ export type BundleErrorCode = "missing-bundle" | "bad-manifest" | "missing-image"; /** Base class so callers can `catch (e) { if (e instanceof BundleError) ... }`. */ export declare class BundleError extends Error { readonly code: BundleErrorCode; constructor(code: BundleErrorCode, message: string, options?: ErrorOptions); } /** The bundle directory or `.zip` named by the `ref` does not exist. */ export declare class BundleNotFoundError extends BundleError { readonly ref: string; constructor(ref: string, options?: ErrorOptions); } /** `manifest.json` is absent from the bundle, is not valid JSON, or is malformed. */ export declare class BundleManifestError extends BundleError { readonly ref: string; constructor(ref: string, detail: string, options?: ErrorOptions); } /** A manifest image references a file that is not present in the bundle. */ export declare class BundleImageNotFoundError extends BundleError { readonly ref: string; readonly imagePath: string; constructor(ref: string, imagePath: string, options?: ErrorOptions); } //# sourceMappingURL=errors.d.ts.map