import fs from 'node:fs'; import path from 'node:path'; import type { Command } from 'commander'; import type { GuardianLifecycleEvent, GuardianRegistration } from '../guardian/types.js'; type Spinner = { start(text?: string): Spinner; succeed(text?: string): void; fail(text?: string): void; warn(text?: string): void; info(text?: string): void; stop(): void; text: string; }; type LoggerLike = { info: (msg: string) => void; error: (msg: string) => void; }; export type RestartCommandOptions = { config?: string; port?: string; host?: string; logLevel?: string; codex?: boolean; claude?: boolean; }; export type RestartCommandContext = { isDevPackage: boolean; isWindows: boolean; defaultDevPort: number; createSpinner: (text: string) => Promise; logger: LoggerLike; findListeningPids: (port: number) => number[]; sleep: (ms: number) => Promise; sendSignal: (pid: number, signal: NodeJS.Signals) => void; fetch: typeof fetch; ensureGuardianDaemon?: () => Promise; registerGuardianProcess?: (registration: GuardianRegistration) => Promise; env?: NodeJS.ProcessEnv; reportGuardianLifecycle?: (event: GuardianLifecycleEvent) => Promise; fsImpl?: Pick; pathImpl?: Pick; getHomeDir?: () => string; exit: (code: number) => never; }; export declare function createRestartCommand(program: Command, ctx: RestartCommandContext): void; export {};