import { type ResetEntityKind, type ResetPipelineParams, type ResetPipelineResult } from "./reset-pipeline.js"; export interface RecoveryUi { select(title: string, options: string[], opts?: unknown): Promise; notify(message: string, level?: string): void; } export interface RecoveryMenuParams { ui: RecoveryUi; kind: ResetEntityKind; id: string; cwd: string; storeCli: string; /** Override interactivity detection (tests). */ interactive?: boolean; /** Override the reset implementation (tests). */ reset?: (p: ResetPipelineParams) => ResetPipelineResult; } /** Ordered phase roles for the entity's pipeline. */ export declare function phaseRolesFor(kind: ResetEntityKind): string[]; /** * Offer an interactive recovery menu at a halt. Returns the reset result if the * operator chose to reset, otherwise undefined (declined / aborted / non- * interactive). Never throws. */ export declare function offerRecoveryMenu(p: RecoveryMenuParams): Promise;