import type { HookDefinition, HookResult, HookEvent } from '../types.js'; import type { AgentManager } from '../../tools/agent/index.js'; /** * Agent hook runner, spawns a subagent via AgentManager and waits for * completion up to the hook's configured timeout. * * The hook's `prompt` field (with `$ARGUMENTS` replaced by the event JSON) * becomes the agent task description. * * Since AgentManager currently registers agents synchronously and doesn't * execute them in a true background thread, the hook marks the agent as * completed immediately and returns a success result. When real background * execution is wired the status polling loop below will take effect. */ export declare function run(hook: HookDefinition, event: HookEvent, manager: Pick): Promise; //# sourceMappingURL=agent.d.ts.map