import { PromiseError } from '../promiseHelpers'; type HTTPResponseErrorOptionsType = { status?: number; statusText?: string; message?: string; data?: D; stack?: string; showData?: boolean; retryable?: boolean; cause?: unknown; }; export declare class HTTPResponseError extends PromiseError { #private; name: string; status: HTTPResponseErrorOptionsType['status']; statusText: HTTPResponseErrorOptionsType['statusText']; isInternallError: boolean; constructor({ status, statusText, message, data, stack, retryable, showData, cause }: HTTPResponseErrorOptionsType); get data(): D | undefined; toJSON(): HTTPResponseErrorOptionsType & { name: string; }; } export declare function toHttpError(error: AnyObject): (AnyObject & HTTPResponseError) | HTTPResponseError; export {};