/** * decideFromEnvelope — wrap decideWorkflowAction with envelope conversion * and error handling. * * Any schema-level throw is caught and turned into a stop decision. * The schema's decideWorkflowAction handles null outcomes and bad inputs * gracefully (never throws), so we only catch unexpected errors. */ import type { EnvelopeLike, OutcomeLike, PolicyLike, ActionDecision } from "./types.js"; interface DecideInput { envelope: EnvelopeLike | null; lastOutcome: OutcomeLike | null; lastOutcomeSourceRevision: string | null; policy: PolicyLike | null; reviewLoopCycles?: { spec?: number; plan?: number; }; } /** * Convert an envelope (and outcome/policy) into a decision. * Never throws — errors are converted to stop decisions. */ export declare function decideFromEnvelope(input: DecideInput): ActionDecision; export {};