/**
 * The following code is modified based on
 * https://github.com/webpack/webpack-dev-server
 *
 * MIT Licensed
 * Author Tobias Koppers @sokra
 * Copyright (c) JS Foundation and other contributors
 * https://github.com/webpack/webpack-dev-server/blob/main/LICENSE
 */
import { CommunicationClient } from '../type.js';
export default class WebSocketClient implements CommunicationClient {
    private client;
    constructor(url: string);
    onOpen(fn: (...args: unknown[]) => void): void;
    onClose(fn: (...args: unknown[]) => void): void;
    onMessage(fn: (...args: unknown[]) => void): void;
}
