/** * Agent (Subagent) Lifecycle Hook Handlers * * Captures SubagentStart and SubagentStop events to BRAIN so that * multi-agent orchestration runs leave an auditable trail of which * subagents were spawned, what tasks they were assigned, and how * they completed. * * Gated behind brain.autoCapture config. Never throws — all errors are * swallowed so that brain capture never blocks agent orchestration. * * Auto-registers on module load. * * @task T166 * @epic T134 */ import type { SubagentStartPayload, SubagentStopPayload } from '../types.js'; /** * Handle SubagentStart — log subagent spawn as a BRAIN observation. * * Records the agent ID, role, and task assignment so orchestrators can * trace which agents were active in a given session. * * Gated behind brain.autoCapture config. Never throws. * * @param projectRoot - Absolute path to the project root directory. * @param payload - SubagentStart event payload. * * @task T166 * @epic T134 */ export declare function handleSubagentStart(projectRoot: string, payload: SubagentStartPayload): Promise; /** * Handle SubagentStop — log subagent completion result as a BRAIN observation. * * Records the agent ID, completion status, assigned task, and optional * summary reference so orchestrators can audit subagent outcomes. * * Gated behind brain.autoCapture config. Never throws. * * @param projectRoot - Absolute path to the project root directory. * @param payload - SubagentStop event payload. * * @task T166 * @epic T134 */ export declare function handleSubagentStop(projectRoot: string, payload: SubagentStopPayload): Promise; //# sourceMappingURL=agent-hooks.d.ts.map