/** The append-only truth: mints act ids, records masked rows only, answers * canonical-identity lookups, seals turns as frozen history shared by reference. */ import type { Act, TurnRecord } from '../contract/vocabulary.js'; import type { CanonicalCall } from '../contract/canonical-call.js'; import type { TurnDraft } from './session.js'; export declare class ActionHistory { private nextId; private readonly records; private readonly acts; mint(): string; /** Records into the DRAFT only — a failed turn leaves nothing behind; seal folds. */ add(act: Act, draft: TurnDraft): Act; ofTurn(turn: number): readonly Act[]; /** Duplicate check over the sealed conversation, canonical key. */ seen(call: CanonicalCall, turn: number): Act | null; /** done + unknown on destructive tools — fail-closed. */ destructiveInTurn(turn: number): number; sealed(): readonly TurnRecord[]; /** Every sealed act of the conversation, flat, oldest first. A fresh array each * call — the ctx freeze must never reach the live store; the ACTS stay shared * by reference. */ pastActs(): readonly Act[]; sealTurn(record: TurnRecord): void; } //# sourceMappingURL=action-history.d.ts.map