type HTTPErrorOptions = { method: string; url: string; statusCode: number; errorCode?: string; attempt: number; details?: Record; }; export declare class HTTPError extends Error { readonly method: string; readonly url: string; readonly statusCode: number; readonly errorCode?: string; readonly attempt: number; readonly details?: Record; constructor(message: string, options: HTTPErrorOptions); static newFromResponse(method: string, response: Response, attempt: number): Promise; static fromJSON(value: unknown): HTTPError; toJSON(): { message: string; } & this; toString(): string; } export {};