declare type ReqConfig = { uri?: string; method?: string; timeout?: number; body?: any; headers?: any; }; declare type HttpConfig = { timeout?: number; headers?: any; }; export declare class BrowserNet { static _xmlRequest(reqConfig: ReqConfig, callback: Function): void; static httpGet(url: string, params: any, cb?: Function, config?: any): Promise; static httpPost(url: string, params: any, cb?: Function, config?: HttpConfig): Promise; } export {};