import WebSocket from 'isomorphic-ws';
/**
 * Maximum websocket frame size, in bytes, for sockets on both ends of the
 * editor <-> dev server connection. 100 MiB matches the `ws` library default;
 * it is set explicitly so the limit is a deliberate choice rather than an
 * inherited default. Inbound frames over the limit make `ws` close that
 * single socket with 1009 (Message Too Big).
 *
 * Only applies where `ws` is the implementation (Node). Browsers ignore the
 * option and don't enforce a receive limit.
 */
export declare const MAX_SOCKET_PAYLOAD_BYTES: number;
/**
 * 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