import { a as ChatRunState, c as ToolEventRecipientRegistry, o as SessionEventSubscriberRegistry, s as SessionMessageSubscriberRegistry, t as ChatAbortControllerEntry } from "./chat-abort-Bkz950s7.js";

//#region src/gateway/server-runtime-subscriptions.d.ts
declare function startGatewayEventSubscriptions(params: {
  broadcast: (event: string, payload: unknown, opts?: {
    dropIfSlow?: boolean;
  }) => void;
  broadcastToConnIds: (event: string, payload: unknown, connIds: ReadonlySet<string>, opts?: {
    dropIfSlow?: boolean;
  }) => void;
  nodeSendToSession: (sessionKey: string, event: string, payload: unknown) => void;
  agentRunSeq: Map<string, number>;
  chatRunState: ChatRunState;
  toolEventRecipients: ToolEventRecipientRegistry;
  sessionEventSubscribers: SessionEventSubscriberRegistry;
  sessionMessageSubscribers: SessionMessageSubscriberRegistry;
  chatAbortControllers: Map<string, ChatAbortControllerEntry>;
}): {
  agentUnsub: () => void;
  heartbeatUnsub: () => void;
  transcriptUnsub: () => void;
  lifecycleUnsub: () => void;
};
//#endregion
export { startGatewayEventSubscriptions };