import WebSocket from 'ws'; import { Client } from 'ts-nats'; export declare class BackendSession { readonly id: string; readonly host: string; readonly ws: WebSocket; readonly nc: Client; readonly backendId: string; onDestroy?: () => void; private _started; private _stopped; private _discoverSubscription; private _wkSubscription; private _connectSubscription; private _connections; private _logger; private _wkRequests; constructor(ws: WebSocket, host: string, nc: Client, backendId: string); start(): Promise; private _onBackendClosed; private _onBackendMessage; private _onNewConnection; destroy(): void; }