declare function node_openConnection(wsUrl: string, protocol?: string | string[]): Promise; export declare const openConnection: typeof node_openConnection; declare function node_onClosed(socket: WebSocket, listener: () => void): void; export declare const onClosed: typeof node_onClosed; declare function node_onMessage(socket: WebSocket, listener: ((msg: string | Buffer) => void)): void; export declare const onMessage: typeof node_onMessage; export {};