import { A as AgentRegistry, S as SocketLike } from './stream-to-socket-fJphU0WN.js'; export { b as StreamToSocketOptions, T as TextStreamLike, s as streamAgentToSocket } from './stream-to-socket-fJphU0WN.js'; import '@nestjs/common'; import '@nestjs/core'; /** Payload for the `agent:run` message. */ interface AgentRunMessage { agent: string; input: string; } /** * WebSocket gateway that streams agent responses over socket.io. Client emits * `agent:run { agent, input }`; the server streams `agent:chunk { delta }` then * `agent:done { text }`. Requires the optional peers `@nestjs/websockets`, * `@nestjs/platform-socket.io`, and `socket.io`. * * Published under `@mgvdev/nestjs-ai/websocket`. */ declare class AgentGateway { private readonly agents; constructor(agents: AgentRegistry); run(message: AgentRunMessage, client: SocketLike): Promise; } export { AgentGateway, type AgentRunMessage, SocketLike };