/** * Host adapter — questionnaire render dispatcher (spec §10.2). * * Applies the capability gate: render the rich `ctx.ui.custom` form when a real terminal TUI is present, * otherwise fall back to native dialogs (which also work over RPC). The rich module is imported lazily * so RPC/offline never value-imports the terminal-only TUI widgets. Both paths return the same * structured answers object keyed by `question.key`, or `undefined` when the user dismisses (dismiss ≠ * cancel — the caller keeps the run blocked). */ import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent"; import type { Questionnaire } from "../flow/questionnaire.ts"; /** The slice of the command context the render paths need: the UI seam plus the mode/hasUI gate. */ export type RenderContext = Pick; export declare function collectAnswers(ctx: RenderContext, questionnaire: Questionnaire): Promise | undefined>; //# sourceMappingURL=questionnaire-render.d.ts.map