/** * Copyright (c) 2025 Mihajlo Stojanovski * All rights reserved. */ import type { SupportedPlatform } from "../../common/constants"; /** * Normalized Telemetry Schema (Enterprise Compliant) * All fields must be present. Missing data = null. * Units: MB, GB, Percentage (0-100). */ export interface NormalizedSystemMetrics { timestamp: number; os: SupportedPlatform | null; cpu: { load1: number; load5: number; load15: number; stealPct: number | null; iowaitPct: number | null; userPct: number | null; systemPct: number | null; idlePct: number | null; }; process: { rssMb: number; }; memory: { totalMb: number; freeMb: number; pressurePct: number | null; }; disk: { freeGb: number | null; }; } /** * Partial update from an OS collector. * Only specific sections can be updated. */ export type MetricsPatch = { cpu?: Partial; memory?: Partial; disk?: Partial; process?: Partial; }; /** * Collects common system metrics and normalizes them. */ export declare function collectCommonMetrics(): Promise; //# sourceMappingURL=common.d.ts.map