import type { UnexpectedProblemResponse } from './schemas.cjs'; /** * Request options */ export type RequestOptions = Pick; /** * An error that occurred during an HTTP request */ export declare class HTTPError extends Error { message: string; type: string; title: string; status: number; url: string; protected __raw?: Record | undefined; name: string; client: string; constructor(message: string, type: string, title: string, status: number, url: string, __raw?: Record | undefined); static fromResponse(resp: { response: Response; error?: UnexpectedProblemResponse; }): HTTPError; getField(key: string): unknown; } /** * Check if an error is an HTTPError * @param error - The error to check * @returns Whether the error is an HTTPError */ export declare function isHTTPError(error: unknown): error is HTTPError;