import { EventEmitter } from 'events'; import { Core } from '../core'; import { AxiosInstance, AxiosRequestConfig } from 'axios'; export interface IRequestOpts extends AxiosRequestConfig { fixConfigWhenRetry?: (config: any) => any; } export declare class BaseApi extends EventEmitter { core: Core; axios: AxiosInstance; constructor(props: any); protected getProxyConfig(): false | { host: string; port: string; protocol: string; auth: { username: string; password: string; }; }; request(opts: IRequestOpts): Promise>; protected handleHttpStatus(res: any): any; protected handleStatusCode(res: any): any; protected handleCode(res: any): any; }