import type { Step, SagaResult } from '../../types/saga.js';
/**
 * Execute a sequence of saga steps.
 *
 * - Steps run in declaration order.
 * - If a **critical** step throws, all previously completed compensations run
 *   in **reverse order** and `SagaResult.rolledBack` is set to true.
 * - If a **non-critical** step throws, the error is collected as a warning
 *   and execution continues to the next step.
 * - Compensating actions are expected to be idempotent.
 *
 * The chaos-testing hook is activated by setting `PLANU_SAGA_CHAOS=<step-name>`
 * in the environment, which forces that step to throw during CI chaos tests.
 *
 * @param steps - Ordered list of saga steps.
 * @param ctx - Shared context threaded through every run/compensate call.
 */
export declare function runSaga<Ctx>(steps: Step<Ctx, any>[], ctx: Ctx): Promise<SagaResult<Ctx>>;
//# sourceMappingURL=cascade-saga.d.ts.map