import type { PendingDecision } from '../hitl/index.js'; import type { TurnExecutionStatus, TurnStatus } from './turn.js'; /** * Project what the SDK records about a turn onto the session-layer * {@link TurnStatus}. * * `Turn.status` is a {@link TurnExecutionStatus} — six values, none of which can * say "a human owes this turn an answer". `TurnStatus` has the vocabulary for * that and is consumed by session-status derivation and by handoff gating, * but nothing in the repo ever produced it: a host implementing a resolver * had to invent the projection, and the two `awaiting_hitl*` variants in * particular had no producer at all. `awaiting_hitl_resolution` documented * a "persisted wait after a HITL timeout" for a timeout nothing could * raise. * * The park record is the missing input. It is durable, it is what an * approval queue already reads, and it carries the deadline that separates * "waiting" from "waited too long". */ export declare function deriveTurnStatus(input: { /** What the turn itself recorded. */ readonly status: TurnExecutionStatus; /** The turn's outstanding park, if it has one. */ readonly park?: PendingDecision; /** Injectable for tests; defaults to now. */ readonly now?: number; }): TurnStatus; //# sourceMappingURL=derive-status.d.ts.map