import type { Context } from "./context.js"; /** * Captures the state required to roll back any release-induced changes. * Should be called once, just before the first stage that mutates the working tree. */ export declare function captureRollbackSnapshot(context: Context): Promise; export interface FinalizeRollbackOptions { /** * Whether the release failed. If true, the working tree, HEAD, and any * release tag are reverted. If false, only the snapshot stash is dropped. */ failed: boolean; } /** * Single entry point for the rollback lifecycle, called once after the release * finishes (success or failure). Acts as the inverse of `captureRollbackSnapshot`. */ export declare function finalizeRollback(context: Context, options: FinalizeRollbackOptions): Promise; //# sourceMappingURL=rollback.d.ts.map