/** @purpose Result of a batch ps query for a single alive process. */ export type PsInfoEntry = { /** @purpose Process ID */ pid: number; /** @purpose CPU usage percentage */ cpuPercent: number; /** @purpose Memory usage in megabytes | @invariant Converted from RSS KB: rss / 1024 */ memoryMb: number; /** @purpose Full command-line arguments of the process */ args: string; }; /** * @purpose Batch process inspection: one ps spawn for all PIDs — returns alive processes only. * @invariant Single `ps -p` call regardless of PID count; dead PIDs are absent from the result Map. * @invariant On ps command failure: warn-log and return empty Map — graceful degradation. * @param pids Array of process IDs to inspect. * @returns Map of pid → PsInfoEntry for alive processes; empty Map if no PIDs or ps fails. * @sideEffect Process: spawns `ps` via execSync. */ export declare function psInfo(pids: number[]): Map; /** * @purpose Extract --model and --effort values from Claude process command-line arguments. * @param args Full command-line arguments string from ps. * @returns Parsed model and effort strings (undefined when absent). */ export declare function parseClaudeArgs(args: string): { model?: string; effort?: string; }; /** * @purpose Extract a context hint from Claude process args — uses Read/Edit allowed paths. * @invariant Returns the most specific path segment from allowedTools, or undefined. * @param args Full ps command-line string. * @returns Short context description, e.g. "sdd/directives" or undefined. */ export declare function parseContextHint(args: string): string | undefined;