/** * The decision outcome — the load-bearing seam of the transition-gate form * (#307 field 13). A gate's `.decision()` hook returns one of three branches. * The three-way partition is fixed here by the primitive; the business verdict * that *picks* a branch is consumer-silo application code. */ /** The crossing proceeds — `payload` is delivered to the consumer. */ export interface Crossed { readonly kind: 'cross'; readonly payload: TPayload; } /** The crossing is blocked into a provisional, reviewable state carrying `reason`. */ export interface Held { readonly kind: 'held'; readonly reason: TReason; } /** Evaluation itself failed — a durable, retryable outcome, not a thrown exception. */ export interface Failed { readonly kind: 'failed'; readonly error: Error; } export type DecisionOutcome = Crossed | Held | Failed; /** Cross the valve: deliver `payload` to the consumer. */ export declare function cross(payload: TPayload): Crossed; /** Hold the crossing: it enters a provisional, reviewable state carrying `reason`. */ export declare function held(reason: TReason): Held; /** Evaluation failed: a retryable, dead-letterable outcome — never a thrown exception. */ export declare function failed(error: Error): Failed; //# sourceMappingURL=decision.d.ts.map