export declare class HttpClient { private static instance; static put(url: string, formData?: any): Promise; static delete(url: string, formData?: any): Promise; /** * Post用这种方法,主要是提交json数据。但是对于非json数据的文件上传,还需要编写upload方法,以便支持流式上传 * 添加返回值类型,允许进行格式化 * @param url * @param formData * @param type * @param timeout 超时值,为0代表不超时 */ static getPostData(url: string, formData: any, headers?: any, withCredentials?: boolean, timeout?: number): Promise; static getData(url: string, query?: any, encode?: "text" | "xhr" | "json"): Promise; static getXMLHttpRequest(url: string): Promise; static getJSONPData(uri: string, data?: any): Promise; }