/** * Restart the watchdog supervisor so it runs the freshly installed code. * * Best-effort and identity-checked: we only ever signal a pid whose command line * says `supervisor`, never an arbitrary pid, and a `false` return is a log line, * not a failure. The supervisor is normally owned by Task Scheduler (autostart), * which restarts it when it exits — so exiting is usually enough, and this only * exists to make that prompt instead of waiting out the scheduler's delay. * * The daemon itself is NOT touched: `upgrade` has already restarted it, and * killing it again here would drop a session that has just started. */ export declare function restartSupervisor(): boolean; /** * Restore `node_modules` from npm's most recent backup directory. * * Used when post-install verification finds the new tree unusable — the EBUSY * case where npm renamed the working install aside and then died mid-reify. * * `node_modules` ONLY, never the whole directory: the backup routinely has no * root `package.json` (npm removed it during the rename), so copying the * directory wholesale would produce an install with no manifest — still broken, * but now in a way that is harder to diagnose. * * Returns the restored backup path, or null when nothing usable was found. The * caller then reports rather than silently starting a doomed daemon. */ export declare function rollbackFromNpmBackup(): string | null; /** Installed version, read from the package manifest (best-effort). */ export declare function installedVersion(): string;