/**
 * Process-wide holder for chat-v2 realtime dependencies.
 *
 * The REST router is mounted during `configureRoutes()` — but the
 * WebSocket gateway + agent dispatcher are only available once the HTTP
 * server is up (in `start()`). Rather than reshuffling startup order,
 * the router reads deps from this holder at request time; `start()` sets
 * them after the gateway + dispatcher are ready.
 *
 * Tests can `setChatV2RealtimeDeps(null)` to clear between runs.
 *
 * @module services/chat-v2/chat-v2.realtime-holder
 */
let _deps = null;
/** Set the live realtime deps. Call once after gateway/dispatcher init. */
export function setChatV2RealtimeDeps(deps) {
    _deps = deps;
}
/** Retrieve the live realtime deps. Returns `{}` when unset. */
export function getChatV2RealtimeDeps() {
    return _deps ?? {};
}
//# sourceMappingURL=chat-v2.realtime-holder.js.map