/** * Copyright (c) 2025 Mihajlo Stojanovski * All rights reserved. */ import { MetricsPatch } from "./common"; export interface CpuState { total: number; steal: number; iowait: number; user: number; system: number; idle: number; } export interface ComputedCpuStats { stealPct: number | null; iowaitPct: number | null; userPct: number | null; systemPct: number | null; idlePct: number | null; } /** * Pure function to parse /proc/stat line */ export declare function parseCpuLine(line: string): CpuState | null; /** * Pure function to compute stats from two states */ export declare function computeCpuStats(current: CpuState, previous: CpuState): ComputedCpuStats; export declare class LinuxCollector { private readonly platform; private lastCpuState; constructor(platform?: string); collect(): Promise; protected readProcStat(): Promise; protected readProcPressure(): Promise; } //# sourceMappingURL=linux.d.ts.map