import { HermesResponse } from "../types"; export declare class HttpError { code: number; name: string; message: string | null; constructor(response: HermesResponse); } export declare type HttpResponseError = HermesResponse & { httpError: HttpError | null; }; export declare const httpErrorInterceptor: (response: HermesResponse) => Promise<{ httpError: HttpError; error: null; headers: { [key: string]: string; }; data: T; ok: true; redirected: boolean; status: number; statusText: string; type: ResponseType; url: string; } | { httpError: HttpError; error: string | number | null; headers: { [key: string]: string; }; data: T; ok: false; redirected: boolean; status: number; statusText: string; type: ResponseType; url: string; } | { httpError: null; error: null; headers: { [key: string]: string; }; data: T; ok: true; redirected: boolean; status: number; statusText: string; type: ResponseType; url: string; } | { httpError: null; error: string | number | null; headers: { [key: string]: string; }; data: T; ok: false; redirected: boolean; status: number; statusText: string; type: ResponseType; url: string; }>; //# sourceMappingURL=http-errors.d.ts.map