import type { CacheHandle } from "./types.js"; import type { StepState } from "./state.js"; import type { Renderer } from "./ui/renderer.js"; import type { RollbackContext, StepContext } from "./types.js"; export interface ContextDeps { renderer: Renderer; step: StepState; phaseName: string; /** Backs `context.cache`; slots declared before the current step. */ cache: CacheHandle>; /** Backs `context.flags`; parsed once from argv before any phase runs. */ flags: Record; } export declare function createStepContext(deps: ContextDeps, input: In, ctx: Ctx, signal: AbortSignal, attempt: number): StepContext; export declare function createRollbackContext(deps: ContextDeps, input: In, ctx: Ctx, output: Out, error: unknown, signal: AbortSignal): RollbackContext; //# sourceMappingURL=context.d.ts.map