import { type RestartState } from "./restart-state.js"; export type RestartCompletion = "success" | "rolled-back" | "failed"; export declare function restartCompletion(state: RestartState): RestartCompletion | undefined; export declare function restartPhaseLabel(phase: string, version?: string): string; export interface WaitForRestartOptions { stateFile: string; restartId: string; workerPid: number; pollIntervalMs?: number; timeoutMs?: number; onPhase?: (state: RestartState) => void; processAlive?: (pid: number) => boolean; } export declare function waitForRestartCompletion(options: WaitForRestartOptions): Promise<{ state: RestartState; completion: RestartCompletion; }>;