import { InternalAxiosRequestConfig } from 'axios'; import { RequestBody, RequestHeaders } from '../../types/base'; import { IApiClient } from './interfaces'; export type ApiClientOptions = { headers?: RequestHeaders; requestInterceptor?: (cf: InternalAxiosRequestConfig) => Promise; requestErrorInterceptor?: (error: any) => any; responseInterceptor?: (res: any) => any; responseErrorInterceptor?: (error: any) => any; }; export declare class ApiClient implements IApiClient { private readonly client; constructor(options?: ApiClientOptions); get: (url: string, headers?: RequestHeaders) => Promise; post: (url: string, headers?: RequestHeaders, body?: BodyInit | RequestBody) => Promise; }