/** * Approval wait with optional timeoutMs / onExpire. * Shared by imperative runtime and event-kernel step-kinds. */ import type { Phase } from "../../schema.ts"; import type { ApprovalDecision } from "./approval.ts"; export type ApprovalExpireAction = "reject" | "fail" | "approve"; export type ResolvedApproval = { kind: "decision"; decision: ApprovalDecision; auto?: boolean; } | { kind: "fail"; error: string; }; export interface ApprovalWaitDeps { phase: Phase; message: string; upstream?: string; requestApproval?: (req: { phaseId: string; message: string; upstream?: string; }) => Promise; signal?: AbortSignal; } /** * Resolve an approval decision, racing human input against timeoutMs when set. * Non-interactive (no requestApproval): auto-reject unless we only had timeout path — * still auto-reject for safety (detached/CI never bypasses). */ export declare function resolveApprovalDecision(deps: ApprovalWaitDeps): Promise; //# sourceMappingURL=approval-wait.d.ts.map