import { AxiosError } from 'axios';
export interface ReqError<Data = any> {
    data: Data;
    status: number;
}
export declare class RequestError<Data = any> extends Error implements ReqError<Data> {
    data: Data;
    status: number;
    constructor({ data, status }: ReqError<Data>);
    static buildFromAxiosError(resp: AxiosError): RequestError<unknown>;
}
export declare const handleAxiosError: (error: unknown) => never;
