import fs from 'node:fs'; import path from 'node:path'; import type { Command } from 'commander'; import type { GuardianLifecycleEvent, GuardianStopResult } 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 StopCommandContext = { isDevPackage: boolean; defaultDevPort: number; createSpinner: (text: string) => Promise; logger: LoggerLike; findListeningPids: (port: number) => number[]; killPidBestEffort: (pid: number, opts: { force: boolean; }) => void; sleep: (ms: number) => Promise; stopTokenDaemonIfRunning?: () => Promise; stopGuardianDaemon?: () => Promise; reportGuardianLifecycle?: (event: GuardianLifecycleEvent) => Promise; fetchImpl?: typeof fetch; env?: Record; fsImpl?: Pick; pathImpl?: Pick; getHomeDir?: () => string; exit: (code: number) => never; }; export declare function createStopCommand(program: Command, ctx: StopCommandContext): void; export {};