import type { UnexpectedProblemResponse } from './schemas.js';
/**
 * Request options
 */
export type RequestOptions = Pick<RequestInit, 'signal'>;
/**
 * 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<string, unknown> | undefined;
    name: string;
    client: string;
    constructor(message: string, type: string, title: string, status: number, url: string, __raw?: Record<string, unknown> | 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;
