import { AxiosInstance, AxiosResponse } from "axios"; import HttpServiceInterface from "./HttpServiceInterface"; import ApplicationInterface from "../foundation/ApplicationInterface"; import HttpMiddlewareInterface from "./interfaces/HttpMiddlewareInterface"; export default class AxiosHttpService implements HttpServiceInterface { protected middleware: {}; protected axios: AxiosInstance; protected app: ApplicationInterface; constructor(app: ApplicationInterface, configService: any); delete(url: string, config?: {}): Promise>; get(url: string, config?: {}): Promise>; head(url: string, config?: {}): Promise>; options(url: string, config?: {}): any; post(url: string, data: object, config?: {}): Promise>; put(url: string, data: object, config?: {}): Promise>; patch(url: string, data: object, config?: {}): Promise>; request(config?: {}): Promise>; registerMiddleware(Middleware: new () => HttpMiddlewareInterface): void; unregisterMiddleware(Middleware: new () => HttpMiddlewareInterface): void; }