/** * @license * Copyright 2025 Qwen Team * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview useArenaInProcess — bridges ArenaManager in-process events * to AgentViewContext agent registration. * * Subscribes to `config.onArenaManagerChange()` to react immediately when * the arena manager is set or cleared. Event listeners are attached to the * manager's emitter as soon as it appears — the backend is resolved lazily * inside the AGENT_START handler, which only fires after the backend is * initialized. */ import { type Config } from '@aetherai/aether-core'; import type { AgentViewActions } from '../contexts/AgentViewContext.js'; /** * Bridge arena in-process events to agent tab registration/unregistration. * * Called by AgentViewProvider — accepts config and actions directly so the * hook has no dependency on AgentViewContext (avoiding a circular import). */ export declare function useArenaInProcess(config: Config | null, actions: AgentViewActions): void;