import type { PermissionPromptDecision, PermissionPromptRequest } from '../../permissions/prompt.js'; import type { ExecPromptAsk, ExecPromptAnswer } from '../../tools/exec/interactive.js'; export type { ExecPromptAsk, ExecPromptAnswer } from '../../tools/exec/interactive.js'; /** The prompt-answer handler the exec tool's interactive runner invokes. */ export type ExecPromptAnswerHandler = (ask: ExecPromptAsk) => Promise; /** The broker seam this wiring routes through. */ export interface ExecPromptWiringDeps { readonly requestApproval: (input: { readonly request: PermissionPromptRequest; readonly metadata?: Record | undefined; }) => Promise; } /** * Build the exec prompt-answer handler: the pending prompt rides the approval * broker as an `execute`-category ask. Approval with a string * `modifiedArgs.answer` feeds that text to the waiting child; approval * without one, or denial, declines the prompt (the runner then stops the run * with the prompt text on the honest result). */ export declare function buildExecPromptAnswerHandler(deps: ExecPromptWiringDeps): ExecPromptAnswerHandler; //# sourceMappingURL=exec-prompt-wiring.d.ts.map