import type { AgentEndEvent, ExtensionAPI, ExtensionContext } from "../../types.ts";
import type { MonitorAwareGoalContinuation } from "./monitor-continuation.ts";
import { type TodoOwedOutcome } from "./todo-owed-backstop.ts";
import { type TurnEndLivenessInput } from "./turn-end-liveness.ts";
import type { Goal } from "./types.ts";
/** What the goal extension knows at a turn end after its two lanes ran. */
export interface TurnEndLivenessState {
    readonly goal: Goal | null;
    readonly todoOutcome: TodoOwedOutcome | undefined;
    readonly deadlineStop: boolean;
    readonly continuationPending: boolean;
    readonly monitor: Pick<MonitorAwareGoalContinuation, "liveWakeSources" | "scheduledContinuation" | "hasStagedRecovery">;
}
/** Builds the decision input from session state; shared with lifecycle consumers so there is one collector. */
export declare function collectTurnEndLivenessInput(ctx: ExtensionContext, event: AgentEndEvent, state: TurnEndLivenessState): TurnEndLivenessInput;
/** Publishes the turn-end verdict and records a stall once; a refused write is logged, never thrown. */
export declare function reportTurnEndLiveness(pi: ExtensionAPI, ctx: ExtensionContext, event: AgentEndEvent, state: TurnEndLivenessState): void;
//# sourceMappingURL=turn-end-liveness-report.d.ts.map