import { WebSocketLike } from 'retransmitting-websocket'; import { Client } from 'westfield-runtime-server'; import Session from './Session'; export declare function createRetransmittingWebSocket(url: URL): WebSocketLike; declare class RemoteSocket { private readonly session; private readonly textEncoder; private readonly textDecoder; private constructor(); static create(session: Session): RemoteSocket; ensureXWayland(compositorProxyURL: URL): void; onWebSocket(webSocket: WebSocketLike, compositorProxyURL: URL): Promise; private setupClientOutOfBandHandlers; private handleMessageEvent; private flushWireMessages; private deserializeWebFD; } export default RemoteSocket;