import { spawnSync as nodeSpawnSync } from 'node:child_process'; type SpawnSyncLike = typeof nodeSpawnSync; export type ManagedZombieProcess = { pid: number; ppid: number; stat: string; command: string; }; export declare function resolveManagedServerPidFiles(port: number, routeCodexHomeDir?: string): string[]; export declare function isPidAlive(pid: number, processKill?: typeof process.kill): boolean; export declare function isTrustedRouteCodexCommand(command: string): boolean; export declare function listManagedServerPidsByPort(port: number, options?: { routeCodexHomeDir?: string; processKill?: typeof process.kill; spawnSyncImpl?: SpawnSyncLike; }): number[]; export declare function listZombieChildrenByParentPids(parentPids: number[], options?: { spawnSyncImpl?: SpawnSyncLike; }): ManagedZombieProcess[]; export declare function listManagedServerZombieChildrenByPort(port: number, options?: { routeCodexHomeDir?: string; processKill?: typeof process.kill; spawnSyncImpl?: SpawnSyncLike; }): ManagedZombieProcess[]; export {};