export declare function isProcessRunningAsync(pid: number): Promise; export declare function isProcessRunning(pid: number): boolean; export interface ProcessInfo { pid: number; command: string; cwd?: string; agentId?: string; startedAt?: string; } export declare function findClaudeCodeProcesses(): Promise; export declare function findOrphanProcessByAgentId(agentId: string): Promise; export declare function findOrphanProcessByWorkspace(workspacePath: string): Promise; export declare function terminateProcess(pid: number): boolean; export declare function terminateProcessTree(pid: number): Promise<{ terminated: number; failed: number; }>; export declare function waitForProcessExit(pid: number, timeoutMs?: number): Promise; export declare function detectOrphanProcesses(persistedSessions: Array<{ agentId: string; pid?: number; workspacePath?: string; command?: string; }>): Promise>; export interface ProcessHealthStatus { pid: number; agentId: string; alive: boolean; cpu: number; memoryMB: number; status: 'healthy' | 'unresponsive' | 'high_cpu' | 'high_memory' | 'dead'; lastUpdate: Date; } export declare function checkProcessHealth(pid: number, agentId: string): Promise; export declare function checkAllSessionsHealth(sessions: Array<{ agentId: string; pid?: number; }>): Promise>; export type ProcessManagementStatus = 'managed' | 'orphan' | 'unknown'; export interface DiscoveredProcessInfo extends ProcessInfo { managementStatus: ProcessManagementStatus; sessionId?: string; isRunning: boolean; lastSeen?: string; } export declare function discoverAllProcesses(managedPids?: Set, managedAgentIds?: Set): Promise; export declare function discoverAllProcessesFull(registryExport: Array<{ agentId: string; pid: number; }>): Promise;