/** * Structured error for HTTP 4xx responses from the Generacy cloud. * * Extends Error for backward compatibility with existing catch blocks. * Surfaces status code, redacted URL, and RFC 7807 detail for * actionable error messages in `generacy launch` / `generacy deploy`. */ export declare class CloudError extends Error { /** HTTP status code (e.g., 400, 401, 404, 429) */ readonly statusCode: number; /** Request URL with claim code redacted (e.g., ?claim=) */ readonly url: string; /** RFC 7807 detail field from response body, if present */ readonly detail?: string; /** Retry-After header value for 429 responses */ readonly retryAfter?: string; /** RFC 7807 type URI from response body, for future programmatic use */ readonly problemType?: string; constructor(opts: { statusCode: number; url: string; message: string; detail?: string; retryAfter?: string; problemType?: string; }); } /** * Replace the `claim` query parameter value with ``. * * Claims are live bootstrap secrets — this prevents accidental leakage * when users paste error output into chat or issue trackers. */ export declare function redactClaimUrl(url: string): string; /** * Prepare a raw HTTP response body for safe display in error messages. * * Strips non-printable characters, collapses whitespace, and truncates. */ export declare function sanitizeBody(raw: string, maxLen?: number): string; //# sourceMappingURL=cloud-error.d.ts.map