import { type Command } from 'commander'; import { type SpawnOutcome } from '../../lib/daemon/daemon-client.js'; import { type UpdateInfo } from '../../lib/update/update-check.js'; export type RestartOutcome = 'restarted' | 'failed' | 'not-running'; export interface RestartDeps { running?: () => boolean; stop?: () => Promise; start?: (port: number) => Promise; } export declare const restartDaemonIfRunning: (deps?: RestartDeps) => Promise; export interface UpdateDeps { check: (installed: string) => Promise; install: () => Promise; restartDaemon: () => Promise; acquireLock: () => boolean; releaseLock: () => void; log: (msg: string) => void; } export interface UpdateOptions { check?: boolean; } export declare const runUpdate: (opts: UpdateOptions, deps?: UpdateDeps) => Promise; export declare const registerUpdate: (program: Command) => void;