import { INestApplicationContext, WebSocketAdapter } from '@nestjs/common'; import { WsMessageHandler } from '@nestjs/common/interfaces'; import { Observable } from 'rxjs'; export interface BaseWsInstance { on: (event: string, callback: Function) => void; close: Function; } export declare abstract class AbstractWsAdapter implements WebSocketAdapter { protected readonly httpServer: any; private _forceCloseConnections; set forceCloseConnections(value: boolean); get forceCloseConnections(): boolean; constructor(appOrHttpServer?: INestApplicationContext | any); bindClientConnect(server: TServer, callback: Function): void; bindClientDisconnect(client: TClient, callback: Function): void; close(server: TServer): Promise; dispose(): Promise; abstract create(port: number, options?: TOptions): TServer; abstract bindMessageHandlers(client: TClient, handlers: WsMessageHandler[], transform: (data: any) => Observable): any; }