import { AxiosRequestConfig , AxiosResponse , AxiosInterceptorManager , } from 'axios' ; export const AXIOS_INSTANCE_KEY = 'axios:instance' ; export interface AxiosHttpService { interceptors : { request : AxiosInterceptorManager < AxiosRequestConfig > ; response : AxiosInterceptorManager < AxiosResponse > ; } ; getUri ( config ? ) : string ; request < T = any , R = AxiosResponse < T > > ( config ) : Promise < R > ; get < T = any , R = AxiosResponse < T > > ( url , config ? ) : Promise < R > ; delete < T = any , R = AxiosResponse < T > > ( url , config ? ) : Promise < R > ; head < T = any , R = AxiosResponse < T > > ( url , config ? ) : Promise < R > ; options < T = any , R = AxiosResponse < T > > ( url , config ? ) : Promise < R > ; post < T = any , R = AxiosResponse < T > > ( url , data ? , config ? ) : Promise < R > ; put < T = any , R = AxiosResponse < T > > ( url , data ? , config ? ) : Promise < R > ; patch < T = any , R = AxiosResponse < T > > ( url , data ? , config ? ) : Promise < R > ; } declare module '@midwayjs/core/dist/interface' { interface MidwayConfig { axios ? : AxiosRequestConfig ; } }