import type { InterruptResponse } from "./interruptResponse.js"; /** The interrupt fields a prompt reads. A full runtime `Interrupt` satisfies it. */ export type Intr = { effect: string; message: string; data: any; origin: string; expectsValue?: boolean; }; export type PromptDecision = "approve" | "reject" | "approve-always" | "reject-always"; export type PromptFn = (intr: Intr) => Promise; export type ValuePromptFn = (intr: Intr) => Promise; export declare function parsePromptAnswer(raw: string): PromptDecision; export declare function terminalPrompt(intr: Intr): Promise; export declare function terminalValuePrompt(intr: Intr): Promise; export declare function parseValueAnswer(raw: string): InterruptResponse; export declare function formatInterruptPrompt(intr: Intr): string;