/// <reference types="node" />
import { Agent, RequestOptions } from 'http';
export declare function getAgent(protocol: string): Agent;
/**
 * Fetch text from server
 */
export default function fetch(url: string, data?: string | {
    [key: string]: any;
}, options?: RequestOptions): Promise<string | {
    [key: string]: any;
}>;
