/// <reference types="node" />
import os from 'node:os';
export declare class PerformanceMonitor {
    spareCpuThreshold: number;
    previousInfo: os.CpuInfo['times'];
    currentDelta: os.CpuInfo['times'] | undefined;
    private timer;
    constructor(intervalDelay: number);
    terminate(): void;
    /**
     * Aggregate the CPU times for all the CPUs.
     * @returns The sum of all the CPU times.
     */
    getCpuInfo(): {
        user: number;
        nice: number;
        sys: number;
        idle: number;
        irq: number;
    };
    get hasSpareCpu(): boolean;
}
