import type * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; import { type AppError, type AppErrorCode } from "../app-error/index.js"; import type { SuggestedAction } from "../cli-runtime/suggested-action.js"; import { type RegistryClientError } from "./__generated__/registry-client.js"; export interface ProblemDetails { readonly [key: string]: unknown; readonly title?: string; readonly status?: number; readonly detail?: string; readonly code?: string; } export declare const httpStatusToAppCode: (status: number, code?: string) => AppErrorCode; export declare const registryErrorToAppError: (body: unknown, response: HttpClientResponse.HttpClientResponse, ctx?: { readonly suggestions?: ReadonlyArray; readonly cause?: unknown; }) => AppError; export declare const registryClientErrorToAppError: (error: RegistryClientError, ctx?: { readonly suggestions?: ReadonlyArray; }) => AppError; //# sourceMappingURL=translate.d.ts.map