import { WebSocket } from "ws";
import { SignalingServerMessage, SignalServerMessage } from "../shared/types";
import { EventEmitter } from "../shared/observable";
export declare class ClientConnection extends EventEmitter<{
    signal: SignalServerMessage;
    close: void;
}> {
    private socket;
    userInfo: {
        user: string;
        accessMode: 'read' | 'write';
    };
    constructor(socket: WebSocket, userInfo: {
        user: string;
        accessMode: 'read' | 'write';
    });
    private listenPingPong;
    send(message: SignalingServerMessage): void;
    private decoder;
    private onMessage;
    close(): void;
}
