import WebSocket from 'ws';
import { WsClient } from './WsClient.js';
export declare class WsClientNode extends WsClient {
    /**
     * Creates a WS client with optional token
     * @param addr The ws:// address
     * @param token Optional token to add.
     */
    getClient(addr: string, token?: string): WebSocket;
    /**
     * Connect to the WS server
     *
     * @param client The client to wait for connection.
     */
    connect(client: WebSocket): Promise<void>;
    /**
     * Disconnects from the WS server.
     */
    disconnect(client: WebSocket): Promise<void>;
    /**
     * The combination of `getClient()` and `connect()`.
     */
    createAndConnect(addr: string, token?: string): Promise<WebSocket>;
}
//# sourceMappingURL=WsClientNode.d.ts.map