/** * The `ask_user_question` answerer. * * The service validates the request before it arrives (aborted signals, empty * question lists, a `plan-review` intent naming a real option, caller * liveness), so this answerer only renders, collects, and honours the signal. * * Presentation follows the pinned Harness answer contract exactly: a question * with options is a picker (single- or multi-select per `multiSelect`), and * every question also admits a free-text `custom` answer — for a single-select * question it replaces the selected option, for a multi-select one it * supplements the selected labels, and a question with no options can only be * answered with it. All three encodings come from the Harness types; nothing * here invents a protocol. * * dshline is one concrete terminal answerer on Harness's scoped * `user-questions/request` waterfall: when a request reaches it and its active * terminal surface can present that request, it claims the request by * returning the structured answer. It never calls `next()` — not because no * other answerer could exist, but because the terminal it presents through is * always available to answer whatever reaches it. The waterfall's own contract * is exactly that: "return an answer to claim the request or call `next()` to * delegate", and an unclaimed request bottoms out in the service's * `NO_PROVIDER` failure. * @module dshline/questions */ import type { Context } from '@deepseek-ai/cordis'; /** * Register this frontend as a user-questions answerer. * * Straight onto the scoped waterfall Harness publishes, with no `next()`: this * answerer's terminal is always able to present whatever reaches it, so every * request it sees is one it claims. * @param ctx - the plugin context owning the registration. * @param bell - emits terminal BEL when this answerer accepts a request. * @returns the disposer unregistering the answerer. */ export declare function installQuestionProvider(ctx: Context, bell: () => void): () => void; //# sourceMappingURL=questions.d.ts.map