import WebSocket from 'isomorphic-ws';
/**
 * If the connection is not established within the timeout, the promise will be rejected.
 * This can happen with bad network conditions, but is very rare.
 */
export declare function connectWebSocket(wsUrl: string, protocol?: string | string[], timeout?: number): Promise<WebSocket>;
//# sourceMappingURL=util.d.ts.map