import type { StrictOmit, Type } from 'ts-gems'; import { ResponsiveMap } from '../../helpers/index.js'; import { OpraSchema } from '../../schema/index.js'; import type { ApiDocument } from '../api-document.js'; import { ApiBase } from '../common/api-base.js'; import { WSController } from './ws-controller.js'; import { WSOperation } from './ws-operation.js'; export declare namespace WSApi { interface InitArguments extends ApiBase.InitArguments, StrictOmit { } } /** * @class WSApi */ export declare class WSApi extends ApiBase { protected get docKeySegment(): string; protected _controllerReverseMap: WeakMap; readonly owner: ApiDocument; readonly transport = "ws"; controllers: ResponsiveMap; constructor(init: WSApi.InitArguments); findController(controller: Type): WSController | undefined; findController(name: string): WSController | undefined; findOperation(controller: Type, operationName: string): WSOperation | undefined; findOperation(controllerName: string, operationName: string): WSOperation | undefined; toJSON(options?: ApiDocument.ExportOptions): OpraSchema.WSApi; }