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); request(config?: HttpRequestConfigInterface); registerMiddleware(middleware: new () => HttpMiddlewareInterface); unregisterMiddleware(middleware: new () => HttpMiddlewareInterface); }