import type { CanonicalCallData, Json, Question, QuestionClose } from '../contract/vocabulary.js'; import { type CanonicalCall } from '../contract/canonical-call.js'; import type { TurnDraft } from './session.js'; export declare class ConsentDesk { private committed; private working; private readonly maskArgs; private readonly now; constructor(maskArgs: (call: CanonicalCall) => CanonicalCallData, now?: () => number); /** A fresh turn attempt works on a copy; a discarded draft leaves no trace. */ beginTurn(): void; commit(): void; hold(call: CanonicalCall, targetValue: string | null, sentence: string, draft: TurnDraft, tenses?: { readonly after: string | null; readonly later: string | null; }): Question; /** The after-tense of the consumed question a licensed call answers, by canonical key. */ afterText(key: string): string | null; markExecuted(id: string, turn: number, outcome?: string | null, result?: Json): void; /** A code consumed in an EARLIER turn arriving again is answered by the record: * the sentence the licensed act sealed with, restated — never a dead turn. The * code consumed this turn already has its answer beside it on this reply. A spent * code names nothing, so the answer never repeats its digits. */ staleAnswers(userText: string, turn: number): readonly string[]; /** Standing later-tense sentences of acts executed in EARLIER turns. */ laterTexts(turn: number): readonly string[]; /** ONLY the exact code, alone in the message, consumes — in any language, * because digits are. Anything else consumes nothing. */ readAnswer(userText: string, draft: TurnDraft): readonly Question[]; /** A live code wrapped in ANY other text — a NO before it included — licenses * nothing and earns this notice on the delivery. */ codeNotices(userText: string): readonly string[]; /** The stored executable call — engine-internal, never delivered. */ held(id: string): CanonicalCallData; open(): readonly Question[]; close(id: string, why: QuestionClose, draft: TurnDraft): void; /** An executed licensed act supersedes every open sibling for its (tool, target). */ closeSiblings(tool: string, targetValue: string | null, exceptId: string, draft: TurnDraft): void; /** Clock expiry runs BEFORE any answer is read: an expired code licenses * nothing, however fast the reply after the five minutes lapse. */ expireByClock(draft: TurnDraft): readonly Question[]; /** Questions past the turn ttl OR the five-minute clock close 'expired' — * the closure is DELIVERED. */ sweep(turn: number, ttl: number, draft: TurnDraft): readonly Question[]; private mintCode; } //# sourceMappingURL=consent-desk.d.ts.map