import type { Policy } from "./policy.js"; import type { Interrupt, InterruptResponse } from "./interrupts.js"; import type { HandlerFn, RunNodeResult } from "./types.js"; 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 makeRunPolicyHandler(policy: Policy): HandlerFn; 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; export declare function installRunPolicyHandler(execCtx: { pushHandler: (h: HandlerFn, liveGuardIds: string[]) => void; }): void; export declare function resolveCliInterrupts(result: RunNodeResult, respond: (interrupts: Interrupt[], responses: InterruptResponse[]) => Promise>, opts?: { prompt?: PromptFn; valuePrompt?: ValuePromptFn; }): Promise>; export {};