/** * HitlDecisionMenu — Ink-rendered HUMAN DECISION REQUIRED prompt. * * Replaces the manual `\x1b[2J\x1b[H` + chalk-bordered ASCII box + * stdin raw-mode keypress loop in src/core/hitl.ts. Owns its own * Ink mount via showHitlDecision(); the caller awaits the resolve. * * Three states: * 1. menu — arrow-key list, last item is "Enter your own" * 2. custom — single-line text input for the operator's freeform answer * 3. cancelled — Ctrl+C handled by parent (signal handler) → unmounts */ import React from 'react'; export interface HitlOption { id: string; label: string; description?: string; } export interface HitlDecisionRequest { title: string; description?: string; context?: string; options: HitlOption[]; /** ID returned when the operator picks the "Enter your own" item. */ customId?: string; } export interface HitlDecisionResult { selectedOptionId: string; userInput?: string; } export declare function HitlDecision({ request, onResolve, }: { request: HitlDecisionRequest; onResolve: (result: HitlDecisionResult) => void; }): React.JSX.Element; /** * Mount the Ink decision menu, await the operator's selection, unmount. * The caller (hitl.ts) handles bookkeeping (event emit, history, etc.). */ export declare function showHitlDecision(request: HitlDecisionRequest): Promise; //# sourceMappingURL=HitlDecisionMenu.d.ts.map