import { AxiosInstance } from "axios"; import { HttpResponse, RequestConfig } from "../types"; export default class HttpAdapter { axios: AxiosInstance; constructor(config: RequestConfig); setConfig(config: RequestConfig): void; get: (url: string, config?: { [key: string]: any; }) => Promise; post: (url: string, data: { [key: string]: any; }, config?: { [key: string]: any; }) => Promise; }