/** The turn's owed words as labeled facts, assembled pure: act facts in act order, * then every open question as an ask fact and its code fact, then the question * closures, then the notes — the same order the floor delivery prints. Each fact * carries the state the reply must agree with; no fact names an internal tool. * * A fact is NUMBERED by its position: F1, F2, F3 … The desk reads the numbered * block before it writes, and its finish names the ids its message expresses. The * ids are the engine's own labels — they never reach the operator. * * The same facts charge what the desk wrote: every literal they mint must ride in the * message, every id must be named, and no label of this prompt may survive into the * words the operator reads. */ import type { Act, Question, QuestionClose } from '../contract/vocabulary.js'; /** The tail of a held act's sentence once the desk's own closing report refused it: * the question is closed withdrawn and the act stands not-done/blocked. */ export declare const WITHDRAWN = "the desk withdrew it before it was put to you; nothing ran"; export interface DeliveryFact { readonly kind: 'ask' | 'code' | 'receipt' | 'refusal' | 'closure' | 'note'; readonly text: string; readonly state: 'ran' | 'refused' | 'held' | null; } /** What the reply must agree with about a fact whose act has a standing. */ export declare const STATE_TAG: Readonly>; /** The id a fact carries in the prompt and in the finish: F1, F2, F3 … */ export declare function factId(index: number): string; /** An act sentence spoken: the human content without the log prefix. The record line * is `head(args) — status` followed by a tail (`. TAIL`) or a detail (`(DETAIL)`); * what a delivery may carry is the tail or the detail, never the line. A sentence * with no log prefix is already speech and stays itself. */ export declare function spokenActSentence(sentence: string): string; /** The owed facts as the desk reads them — one numbered line each. */ export declare function numberedFactLines(facts: readonly DeliveryFact[]): string; /** Every fact id the finish fails to name. Token comparison only — no word is read. */ export declare function factIdMisses(claimed: readonly string[], facts: readonly DeliveryFact[]): readonly string[]; /** The desk's claimed ids carried across a renumbering: each id names the fact the * instruction numbered under it, and follows that fact to its place in the list that * stands now — an id whose fact is gone is dropped. */ export declare function remapClaimedFacts(claimed: readonly string[], before: readonly DeliveryFact[], after: readonly DeliveryFact[]): readonly string[]; /** Every id the finish names that this turn owes no fact for. A finish that claims an * id the prompt never numbered has told the engine about a sentence that does not * exist, and the whole list is worth as much as its worst entry. */ export declare function unowedFactIds(claimed: readonly string[], facts: readonly DeliveryFact[]): readonly string[]; /** What a message fails to carry of the literals the records mint: every identifier, * every canonical figure (token-boundary by construction — figureRuns yields whole * digit runs only), every code. The identifiers leave the source before its figures * are counted, so an id's digits never masquerade as an amount the reply owes. */ export declare function gateMisses(facts: readonly DeliveryFact[], message: string): readonly string[]; /** The engine's own labels a text carries: any bracketed fact tag — `[F1]`, `[F7]`, * whatever the number and whether or not this turn numbered it — every label THIS * turn minted, standing as a word wherever the desk put it, and the state tags the * prompt stamps beside them. They are this prompt's bookkeeping, and a reply printing * one has bolted an internal token onto the operator's words. * * The minted labels are a closed set the engine wrote itself, so nothing is guessed * from shape: `F1` answers only where this turn numbered a first fact, and a name the * records carry is never one of them, in brackets or out. */ export declare function engineLabels(text: string, facts?: readonly DeliveryFact[]): readonly string[]; /** The text with every fact label struck out — `[F7]` as the prompt prints it and the * bare `F7` a desk writes when it cites the block in a sentence. The number in a label * is this prompt's own counting, never an amount the records carry, and the figure * walks must not read its digits as one. */ export declare function withoutFactLabels(text: string): string; /** A bare world code standing where an authored sentence should: four or more * characters, the first A-Z, the rest A-Z, digits or underscore. A turn whose owed * word is one of these has no sentence to render — the floor delivers it literally * and the gap stays visible. */ export declare function isCodeShaped(text: string): boolean; /** The one user-role message that turns the desk into the closer of its own turn. It * rides below the prefix the desk has been reading all turn — same system, same tool * cards, same acts — and carries the numbered owed facts and the order to write. The * ban on bracketed codes is part of the order: a numbered brief teaches a model to * echo the numbers, and the walk that would catch them cannot say why. */ /** The one user-role message of the act micro-step: the operator's own words, and the * order to answer them on the record. A rule that forbids the operation is not a * reason to skip the call — the denial is what names the blocker, and words written * instead of it name nothing the records can be held to. A surface that performs * nothing the operator asked for is answered by calling nothing. */ export declare function actOrder(userText: string): string; export declare function closeInstruction(facts: readonly DeliveryFact[]): string; export declare function assembleFacts(acts: readonly Act[], open: readonly Question[], closed: readonly { readonly id: string; readonly why: QuestionClose; }[], notes: readonly string[]): readonly DeliveryFact[]; //# sourceMappingURL=delivery-facts.d.ts.map