import { WSMessageHandler, WSServiceBase } from './TestWebSocketDeclare';
/**
* WebSocket 服务客户端
*/
export declare class TestWebSocketWsClient extends WSServiceBase {
    /**
     * 设置消息处理器
     * @param messageHandler 消息处理器
     */
    useMessageHandler(messageHandler: WSMessageHandler): TestWebSocketWsClient;
    /**
     * 创建WebSocket连接
     * @param wsUrl WebsocketURL ws://127.0.0.1/ wss://127.0.0.1/
     * @param context 上下文信息 {recordId:xxxx,userId:xxxx}
     */
    connectWS(wsUrl: string, context?: any): Promise<any>;
    private processWsUrl;
}
export { WSMessageHandler as TestWebSocketWSMessageHandler };
