/** A public rendering projection, never a serialized flow, executable expression, or session. */ export function projectForm(session: any, flows: any): { version: number; form: any; language: any; fields: any; } | null; /** * The options of the question asked now, when it has a closed, labelled set, for a client that draws them as buttons or a list: * {version: 1, language, options: [{key, label, say}]}, else null. Only a question asked by ask-choice qualifies (a * confirmation, a menu, a choice asked in chat), and only when every option it offers has a label in the session's * language (yes and no have standard ones). An option keyed 'event:' is an interrupt word, never offered. A tap sends `say` * as the caller's own message: the label when the option reads it, else the option's first word or key that is not a * number, else its first key; so the answer is read by the question's own reader. A host offers this only when no form * card is drawn (projectForm is null). */ export function projectChoices(session: any): { version: number; language: string; options: { key: string; label: string; say: string; }[]; } | null; /** The words the question asked now offers as its answers (each choice's phrases and labels), or [] when none is * pending. Read-only. A host that answers some messages itself before the engine (a request to hear the last reply * again, "again" / "otra vez") checks a message against these first, so an offered answer always reaches the flow: * prod 2026-11-11, a payment-link failure menu offered AGAIN and the host replayed the menu instead. Covers an * ask-choice question and a form's current choice input (its runtime choices, choices_from included). */ export function offeredReplies(session: any): any[]; /** Host preflight: call before updateActivity. Unknown paths and malformed envelopes never enter execution. */ /** The place a view's field suggests, or null: the host's suggestion endpoint answers only for a place field of the * form that is open now (`form` is the view's instance, `path` the field's), so it is never a general place service. */ export function formPlaceField(view: any, form: any, path: any): any; export function parseFormSubmission(prompt: any, view: any): { prompt: any; form: any; values: any; } | null; /** Install these two overrides for one preflighted submission turn only; restore the host's functions afterwards. * No parser, new state, or changed behavior is installed on ordinary clients/turns. */ export function formSubmissionReaders(submission: any, getSession: any): { readFormAnswer(answer: any, candidates: any, current: any, choiceKey: any, questions?: any[]): { hits: any[]; ambiguous: any; remaining: any[]; questions: any[]; clarify?: any[] | undefined; decisions?: { form: any; name: any; rule: any; }[] | undefined; refused?: ({ form: any; name: any; rule: string; value?: undefined; } | { form: any; name: any; value: any; rule: string; })[] | undefined; } | { hits: any; ambiguous: never[]; remaining: never[]; questions: never[]; refused: never[]; decisions: any; }; enrichFormMatches(matches: any, chain: any, form: any, names?: any[], asked?: string): any; }; export const FORM_SUBMISSION_PREFIX: "JSFE_FORM_V1:"; //# sourceMappingURL=form-client.d.ts.map