import HttpResponseInterface from "./interfaces/HttpResponseInterface"; import HttpMiddlewareInterface from "./interfaces/HttpMiddlewareInterface"; import HttpRequestConfigInterface from "./interfaces/HttpRequestConfigInterface"; export default interface HttpServiceInterface { get(url: string, config?: HttpRequestConfigInterface): Promise; put(url: string, data: object, config?: HttpRequestConfigInterface): Promise; post(url: string, data?: object, config?: HttpRequestConfigInterface): Promise; patch(url: string, data: object, config?: HttpRequestConfigInterface): Promise; delete(url: string, config?: HttpRequestConfigInterface): Promise; head(url: string, config?: HttpRequestConfigInterface): Promise; options(url: string, config?: HttpRequestConfigInterface): any; request(config?: HttpRequestConfigInterface): any; registerMiddleware(middleware: new () => HttpMiddlewareInterface): any; unregisterMiddleware(middleware: new () => HttpMiddlewareInterface): any; }