/** Three tenses. Owed reads are built from the disclosure needs recipes over the * held call's OWN args, or over an EARLIER alias's answer — a value carrying a dot * is a path into the alias it starts with, and the reads run in dependency order — * and performed by the ENGINE — recorded, origin engine; never requested from the * model, so no deny can starve them. This is the ONLY place the engine derives call * arguments, and only as a declared rename of the frozen held call's own values or * a declared path over a read the engine itself performed — a call whose args would * take intent is model-filled. Slots fill by alias, bound to the question's target * record by construction. A slot the reads answer nothing for REFUSES the call — an * ask that cannot name its object is never asked; the card's empty sentence speaks, * or the engine's plain default. */ import type { Act, CanonicalCallData, Json } from '../contract/vocabulary.js'; /** One engine-performed read of a disclosure entry: the args the held call fills * now, and the paths an earlier alias's answer fills at run time. */ export interface OwedReadStep { readonly alias: string; readonly tool: string; readonly args: Readonly>; readonly argPaths?: Readonly>; } import type { CompiledAgent } from '../cards/cards.js'; export interface Tenses { readonly before: string | null; readonly after: string | null; readonly later: string | null; } /** Fills a rendered tense's remaining {result.*} slots from an executed call's * result; a slot the result cannot fill leaves the text as it came. */ export declare function fillResultSlots(text: string, result: Json): string; export declare class DisclosureDesk { private readonly bindings; constructor(bindings: CompiledAgent['disclosureBindings']); /** The alias's bound value: the whole read result, or — when the recipe declares * a pick — the ONE row of the list whose declared field equals the held call's * declared argument. No match binds null, and the unanswered slot refuses * through the empty sentence, as ever. */ private bound; owedReads(tool: string, call: CanonicalCallData): readonly OwedReadStep[]; /** A step's full arguments: the held-filled ones as they stand, and every declared * path answered from the alias it starts with — read off the acts already run. */ fillOwed(step: OwedReadStep, resolved: ReadonlyMap): Readonly>; /** The declared cap, checked over the owed reads: when the call's named arg * exceeds the value the read answered, the refusal sentence comes back * rendered — the call never runs and never asks. Null = within the cap, * no cap declared, or the arg is absent from the call. */ overCap(tool: string, call: CanonicalCallData, reads: ReadonlyMap): string | null; /** The empty-record refusal: when a declared tense finds no value in the * reads and the held call's args, the ask cannot be written — the call is * refused with the card's own empty sentence ({args.*} slots only) or the * engine's plain default. Null = every tense fills. */ emptyRefusal(tool: string, call: CanonicalCallData, reads: ReadonlyMap): string | null; /** Fills the {result.*} slots of an already-rendered tense with the executed * call's masked result. A sentence the answer cannot fill is silent — never an * error: the act has run, and its own receipt stands for it. */ withResult(text: string | null, result: Json): string | null; /** The after-tense of an ordinary done call, rendered from its own args and * result. A sentence these two cannot fill is silent — never an error. */ afterOf(tool: string, call: CanonicalCallData, result: Json): string | null; /** All three tenses rendered at once, over the reads and the held call's args. */ tenses(tool: string, call: CanonicalCallData, reads: ReadonlyMap): Tenses; } //# sourceMappingURL=disclosure-desk.d.ts.map