/** * Ask Tool Extension - Interactive question UI for pi-coding-agent * * Split-pane-only layout: options list (left) + description preview (right). * Minimal schema: question + options[{title, description}]. */ import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; import { Text } from "@earendil-works/pi-tui"; import { type QuestionOption } from "../tui/single-select-layout.js"; type AskOptionInput = QuestionOption | string; interface AskParams { question: string; options: AskOptionInput[]; } type AskResponse = { kind: "selection"; selections: string[]; }; interface AskToolDetails { question: string; options: QuestionOption[]; response: AskResponse | null; cancelled: boolean; } export declare function createAskUserTool(): { name: string; label: string; description: string; promptSnippet: string; promptGuidelines: string[]; parameters: any; execute(_toolCallId: string, params: AskParams, signal: AbortSignal | undefined, onUpdate: ((result: any) => void) | undefined, ctx: ExtensionContext): Promise<{ content: { type: string; text: string; }[]; details: AskToolDetails; }>; renderCall(args: any, theme: any): Text; renderResult(result: any, options: any, theme: any, args?: Record): Text; }; export {}; //# sourceMappingURL=ask-user.d.ts.map