/** * MAMA OS daemon spawn and watchdog logic. * * Extracted from cli/commands/start.ts to keep the orchestrator thin. * All logic and function signatures are unchanged. */ /** * Watchdog configuration */ export declare const WATCHDOG: { /** Health check interval (ms) */ CHECK_INTERVAL: number; /** Max consecutive failures before restart */ MAX_FAILURES: number; /** Health check HTTP timeout (ms) */ HEALTH_TIMEOUT: number; /** Max auto-restarts before giving up */ MAX_RESTARTS: number; /** Backoff multiplier per restart (ms) */ BACKOFF_BASE: number; /** Max backoff delay (ms) */ BACKOFF_MAX: number; }; /** * Spawn a daemon child process and return its PID */ export declare function spawnDaemonChild(): number; /** * Start daemon process with watchdog auto-restart */ export declare function startDaemon(): Promise; /** * Watchdog: monitors daemon health and auto-restarts on failure. * Runs as a background interval in the parent process (which exits shortly after). * To survive parent exit, we spawn a separate watchdog process. */ export declare function startWatchdog(initialPid: number): void; //# sourceMappingURL=daemon.d.ts.map