/** * Turns `wmic process get ... /format:csv` into ProcessInfo records. * * The column-order and embedded-comma hazards -- and why the naive parse was * wrong in four of five fields -- are documented in utils/wmic-csv.ts, which * two separate tools now share because both got the same mapping wrong. This * file only maps parsed columns onto the shape smart_processes returns. */ export { parseWmiDate, lifetimeCpuPercent } from '../../utils/wmic-csv.js'; export interface ProcessInfo { pid: number; name: string; cpu: number; memory: number; command: string; user: string; } /** * The columns to request. WMIC reorders them alphabetically regardless, which * is precisely why the parser reads the header instead of assuming one. */ export declare const WMIC_PROCESS_COLUMNS = "ProcessId,Name,UserModeTime,KernelModeTime,WorkingSetSize,CreationDate,CommandLine"; /** * @param stdout Raw `wmic ... /format:csv` output. * @param now Epoch ms used for the CPU lifetime average. */ export declare function parseWmicProcessCsv(stdout: string, now?: number): ProcessInfo[]; //# sourceMappingURL=wmic-process-parser.d.ts.map