import { WopeeError } from '../../../shared'; import { ZodError } from 'zod'; /** * Turns a zod validation failure into readable prose. Fields without a hint fall * back to the bare zod message, so every config failure reads as a sentence * rather than a ZodError dump. */ export declare function toConfigError(error: ZodError): WopeeError; /** * Wraps a failed API call in a `WopeeError` that says what to do about it. * * The discriminator for "unreachable" is the absence of a response rather than * an errno allowlist — that covers DNS, TCP, TLS and proxy-tunnel failures * without going stale. */ export declare function toApiRequestError(error: unknown, context: { apiUrl: string; projectUuid?: string; }): WopeeError; //# sourceMappingURL=errors.d.ts.map