/*!
 * @package @coolgk/utils
 * @version 3.1.4
 * @link https://github.com/coolgk/node-utils
 * @license MIT
 * @author Daniel Gong <daniel.k.gong@gmail.com>
 *
 * Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
 * Licensed under the MIT License.
 */

export interface IRequestConfig {
    data?: {};
    headers?: {
        [propName: string]: string;
    };
    method?: string;
    protocol?: string;
}
export interface IRequestResponse {
    statusCode: number;
    headers: {
        [propName: string]: string;
    }[];
    data: string;
    json: {};
}
export declare function send(urlString: string, options?: IRequestConfig): Promise<IRequestResponse>;
export declare function get(urlString: string, options?: IRequestConfig): Promise<IRequestResponse>;
export declare function post(urlString: string, options?: IRequestConfig): Promise<IRequestResponse>;
