/** * Host adapter — one rich, multi-page questionnaire form rendered through `ctx.ui.custom`. * * Text answers use PI's multiline Editor. Multi-select options behave like checkboxes: Space toggles * the focused row in place. A questionnaire with more than one question keeps all answers in the same * overlay and completes only from its final Submit page. */ import { type ExtensionCommandContext, type Theme } from "@earendil-works/pi-coding-agent"; import { type Component, type TUI } from "@earendil-works/pi-tui"; import type { Questionnaire } from "../flow/questionnaire.ts"; /** The slice of the command context the rich form needs: the `ctx.ui.custom` overlay seam. */ type FormContext = Pick; /** Render the questionnaire and return structured answers, or `undefined` when the user cancels. */ export declare function renderRichForm(ctx: FormContext, questionnaire: Questionnaire): Promise | undefined>; /** Build the rich questionnaire component. Exported so keyboard/render integration can be tested. */ export declare function createQuestionnaireForm(tui: TUI, theme: Theme, questionnaire: Questionnaire, done: (answers: Record | undefined) => void): Component; export {}; //# sourceMappingURL=questionnaire-form.d.ts.map