#!/usr/bin/env node import { type ChildProcess } from "node:child_process"; export interface StartupProgressMessage { type: "progress"; phase: "checking" | "backing-up" | "importing" | "validating" | "cutover" | "retiring" | "starting-services" | "ready"; completed?: number; total?: number; } export interface StartupReadyMessage { type: "ready"; host: string; port: number; mode?: "normal" | "recovery"; } export declare class StartupWaitError extends Error { readonly preparationStarted: boolean; constructor(message: string, preparationStarted: boolean); } /** * Before the first preparation acknowledgement, a missing daemon is a timeout. * Once storage preparation starts, inactivity produces a status notice, never a * destructive deadline: a large copy/checkpoint may block the child's event loop. * The same ordinary command keeps waiting for ready/error/process exit. */ export declare function waitForStartup(child: Pick, options: { inactivityMs: number; onProgress?(message: StartupProgressMessage): void; onStall?(phase: StartupProgressMessage["phase"]): void; }): Promise; //# sourceMappingURL=cli.d.ts.map