import { AppError, type AppErrorCode } from "../app-error/index.js"; import type { SuggestedAction } from "../cli-runtime/suggested-action.js"; export { captureRegistryErrorResponseBodies } from "./response-body.js"; export interface RegistryFailureContext { readonly baseUrl: string; readonly networkDetail: string; readonly incompatibleDetail: string; readonly requestConstructionDetail: string; readonly fallbackDetail: string; readonly suggestions?: ReadonlyArray; } /** Translate one Registry boundary failure without discarding HTTP evidence. */ export declare const mapRegistryFailure: (error: unknown, context: RegistryFailureContext) => AppError; /** Change endpoint semantics while preserving failure evidence and recovery. */ export declare const withAppErrorSemantics: (error: AppError, semantics: { readonly code?: AppErrorCode; readonly title?: string; readonly detail?: string; readonly suggestions?: ReadonlyArray; }) => AppError; //# sourceMappingURL=failure-mapping.d.ts.map