import { type DurableSessionState } from "#execution/durable-session-store.js"; export interface CancelledTurnSettleResult { readonly serializedContext: Record; readonly sessionState: DurableSessionState; } /** * Settles one cancelled turn: emits `turn.cancelled` → `session.waiting`, * drops pending runtime-action state, and persists the between-turns * session. Runs in the *driver* run, whose wake sources exclude the * cancel hook, so a queued cancel wake cannot re-dispatch it. */ export declare function settleCancelledTurnStep(input: { readonly parentWritable: WritableStream; readonly serializedContext: Record; readonly sessionState: DurableSessionState; }): Promise;