import { AnyObject, TRequestMethod } from '../common'; interface IRequestOptions { url: string; method: TRequestMethod; params?: AnyObject; body?: AnyObject; headers?: AnyObject; configs?: AnyObject; } export declare class NetworkHelper { private name; private logger?; constructor(opts: { name: string; logger?: any; }); getProtocol(url: string): "http" | "https"; send(opts: IRequestOptions): Promise; get(opts: IRequestOptions): Promise; post(opts: IRequestOptions): Promise; put(opts: IRequestOptions): Promise; patch(opts: IRequestOptions): Promise; delete(opts: IRequestOptions): Promise; } export {};