import { z } from 'zod'; import * as schemas from './schemas.js'; export declare class HTTPError extends Error { type: string; title: string; status: number; url: string; retryAfter: number | undefined; protected __raw?: Record | undefined; constructor(message: string, type: string, title: string, status: number, url: string, retryAfter: number | undefined, __raw?: Record | undefined); static fromResponse(resp: { response: Response; error?: z.infer; }): HTTPError; /** * The `invalid_parameters` problem-detail extension member, present on Bad * Request (400) responses. Typed from the schema, not runtime-validated * (like the rest of the SDK, this trusts the server rather than rejecting * additive fields) — `undefined` when the response didn't carry one. */ get invalidParameters(): z.infer | undefined; /** * Escape hatch for problem-detail extension members without a typed * accessor above. */ getField(key: string): unknown; }