import type { Dwn } from '@enbox/dwn-sdk-js'; import type { ActivityLog } from './admin/activity-log.js'; import type { AdminStore } from './admin/admin-store.js'; import type { ConnectionManager } from './connection/connection-manager.js'; import type { DwnServerConfig } from './config.js'; import type { MessageProcessedHook } from './message-processed-hook.js'; import type { RateLimiter } from './rate-limiter.js'; import type { RegistrationStore } from './registration/registration-store.js'; import type { HttpApi } from './http-api.js'; export type WsApiOptions = { activityLog?: ActivityLog; adminStore?: AdminStore; config?: DwnServerConfig; connectionManager?: ConnectionManager; maxInFlight?: number; messageProcessedHooks?: MessageProcessedHook[]; registrationStore?: RegistrationStore; tenantRateLimiter?: RateLimiter; }; export declare class WsApi { #private; dwn: Dwn; constructor(httpApi: HttpApi, dwn: Dwn, options?: WsApiOptions); start(): void; /** * Returns the connection manager. Used by the admin API for connection introspection. */ get connectionManager(): ConnectionManager; /** * Closes live local-node WebSocket connections authenticated by the given pairing token. */ closeLocalNodeConnectionsByToken(token: string): Promise; close(): Promise; } //# sourceMappingURL=ws-api.d.ts.map