///
import * as WebSocket from 'ws';
import * as http from 'http';
export declare function sleep(ms: number): Promise;
export declare function wsOnOpenPromise(ws: WebSocket): Promise;
export declare function wsOnClosePromise(ws: WebSocket): Promise;
export declare function wsClosePromise(ws: WebSocket): Promise;
export declare function wsOnMessagePromise(ws: WebSocket): Promise;
export declare function wsIsConnectedPromise(url: string): Promise;
export declare function httpGet(host: string, port: number, getPath: string, headers?: {
[head: string]: string;
}): Promise;
export declare function reqToBodyBuffer(req: http.IncomingMessage): Promise;