import type { GoalEvaluationPayload } from '@mastra/core/stream'; import type { EventHandlerContext } from './types.js'; export declare function handleAgentStart(ctx: EventHandlerContext): void; export declare function handleAgentEnd(ctx: EventHandlerContext): void; export declare function handleAgentAborted(ctx: EventHandlerContext): void; export declare function handleAgentError(ctx: EventHandlerContext): void; /** * Render an in-loop goal evaluation surfaced by the core goal step as a `goal` * stream chunk (bridged to a `goal_evaluation` controller event). The core loop * owns continuation — this handler only mirrors the judge's decision into the * UI, syncs the adapter's progress, and runs the plan-mode auto-switch when a * plan-started goal completes. */ export declare function handleGoalEvaluation(ctx: EventHandlerContext, payload: GoalEvaluationPayload): void; //# sourceMappingURL=agent-lifecycle.d.ts.map