export type ProcessInfo = { pid: number; name: string; command: string; cpu: number; mem: number; started: string; }; export type ProcessSnapshot = { ts: number; activeApp: string; activeWindowTitle: string; processes: ProcessInfo[]; }; export type ProcessChanges = { newProcesses: ProcessInfo[]; exitedProcesses: ProcessInfo[]; appSwitch: { from: string; to: string; } | null; highCpu: ProcessInfo[]; }; /** * Capture a snapshot of running processes and the active window on macOS. * Returns a default empty snapshot on non-macOS platforms or on error. */ export declare function captureProcesses(): Promise; /** * Compute changes between two successive process snapshots. */ export declare function processChanges(prev: ProcessSnapshot, curr: ProcessSnapshot): ProcessChanges;