import { RequestConfig } from './types';
export interface ResponseErrorOptions<E = unknown> {
    name?: string;
    message: string;
    status?: number;
    statusText?: string;
    response?: Response;
    config?: RequestConfig<unknown, unknown, E>;
}
export declare class ResponseError<E = unknown> extends Error {
    #private;
    constructor({ message, status, statusText, response, config, name }: ResponseErrorOptions<E>);
    get message(): string;
    get status(): number | undefined;
    get statusText(): string | undefined;
    get response(): Response | undefined;
    get config(): RequestConfig<unknown, unknown, E> | undefined;
    get name(): string;
}
