///
import { AxiosResponse, AxiosRequestConfig, AxiosInstance } from 'axios';
import { ApiConfig } from './config';
export declare abstract class Api {
protected cookie?: string;
protected readonly config: ApiConfig;
protected constructor(opts: ApiConfig);
private mergeDefaults;
protected get(endpoint: string, config?: AxiosRequestConfig): Promise>;
protected post(endpoint: string, body: Buffer | string | object, config?: AxiosRequestConfig): Promise>;
/**
* Get an AxiosInstance with the base configuration setup to fire off
* a request to the network.
*/
protected request(): AxiosInstance;
}