export declare type Method = "get" | "GET" | "delete" | "Delete" | "head" | "HEAD" | "options" | "OPTIONS" | "post" | "POST" | "put" | "PUT" | "patch" | "PATCH"; export interface HttpRequestConfig { url?: string; method?: string; headers?: any; data?: any; params?: any; withStatusCode?: boolean; responseType?: XMLHttpRequestResponseType; redirect?: boolean; timeout?: number; } export interface HttpResponse { data: any; status: number; headers: any; config: HttpRequestConfig; } export interface Http { request(config: HttpRequestConfig): HttpResponse; get(url: string, config?: HttpRequestConfig): HttpResponse; delete(url: string, config?: HttpRequestConfig): HttpResponse; head(url: string, config?: HttpRequestConfig): HttpResponse; options(url: string, config?: HttpRequestConfig): HttpResponse; post(url: string, data?: any, config?: HttpRequestConfig): HttpResponse; put(url: string, data?: any, config?: HttpRequestConfig): HttpResponse; patch(url: string, data?: any, config?: HttpRequestConfig): HttpResponse; } export interface HttpInstance extends Http { (config: HttpRequestConfig): HttpResponse; (url: string, config?: HttpRequestConfig): HttpResponse; }