import { BaseMonitor } from '../core/base-monitor';
import { MonitorResult, SystemConfig, SystemInfo, LoadAverage } from '../types';
import { PlatformAdapter } from '../types/platform';
import { CacheManager } from '../core/cache-manager';
/**
 * 系统监控器
 *
 * 提供系统级别的监控功能，包括系统信息、运行时间、负载等
 */
export declare class SystemMonitor extends BaseMonitor<SystemInfo> {
    private systemConfig;
    constructor(adapter: PlatformAdapter, config?: SystemConfig, cache?: CacheManager);
    /**
     * 获取系统基本信息
     */
    info(): Promise<MonitorResult<SystemInfo>>;
    /**
     * 获取系统运行时间
     */
    uptime(): Promise<MonitorResult<{
        uptime: number;
        uptimeFormatted: string;
        bootTime: number;
    }>>;
    /**
     * 获取系统负载
     */
    load(): Promise<MonitorResult<LoadAverage & {
        normalized: {
            load1: number;
            load5: number;
            load15: number;
        };
        status: 'low' | 'normal' | 'high' | 'critical';
    }>>;
    /**
     * 获取当前登录用户
     */
    users(): Promise<MonitorResult<Array<{
        username: string;
        terminal: string;
        host: string;
        loginTime: number;
    }>>>;
    /**
     * 获取系统服务状态
     */
    services(): Promise<MonitorResult<Array<{
        name: string;
        status: 'running' | 'stopped' | 'failed' | 'unknown';
        enabled: boolean;
        description?: string;
    }>>>;
    /**
     * 获取系统资源总览
     */
    overview(): Promise<MonitorResult<{
        system: {
            hostname: string;
            platform: string;
            uptime: string;
            loadStatus: string;
        };
        resources: {
            cpuUsage: number;
            memoryUsage: number;
            diskUsage: number;
            networkActivity: boolean;
        };
        counts: {
            processes: number;
            users: number;
            services?: number;
        };
        health: {
            status: 'healthy' | 'warning' | 'critical';
            issues: string[];
        };
    }>>;
    /**
     * 获取系统时间信息
     */
    time(): Promise<MonitorResult<{
        current: number;
        timezone: string;
        utcOffset: number;
        formatted: string;
        bootTime?: number;
    }>>;
    /**
     * 系统健康检查
     */
    healthCheck(): Promise<MonitorResult<{
        status: 'healthy' | 'warning' | 'critical';
        checks: {
            load: boolean;
            uptime: boolean;
            services: boolean;
            resources: boolean;
        };
        issues: string[];
        score: number;
    }>>;
    /**
     * 配置是否包含系统负载
     */
    withLoad(include: boolean): this;
    /**
     * 配置是否包含运行时间
     */
    withUptime(include: boolean): this;
    /**
     * 配置是否包含系统信息
     */
    withSystemInfo(include: boolean): this;
    /**
     * 配置是否包含用户信息
     */
    withUsers(include: boolean): this;
    /**
     * 配置是否包含服务状态
     */
    withServices(include: boolean): this;
    /**
     * 获取默认配置
     */
    protected getDefaultConfig(): SystemConfig;
    /**
     * 转换系统信息
     */
    private transformSystemInfo;
    private normalizeUptime;
    private extractUptimeSeconds;
    private normalizeBootTime;
    /**
     * 转换负载平均值
     */
    private transformLoadAverage;
    /**
     * 转换用户列表
     */
    private transformUsersList;
    /**
     * 转换服务列表
     */
    private transformServicesList;
    private isServiceEnabled;
    /**
     * 格式化运行时间
     */
    private formatUptime;
    /**
     * 评估负载状态
     */
    private evaluateLoadStatus;
    /**
     * 评估系统健康状态
     */
    private evaluateSystemHealth;
    /**
     * 规范化服务状态
     */
    private normalizeServiceStatus;
    /**
     * 解析登录时间
     */
    private parseLoginTime;
    /**
     * 安全解析数字
     */
    private safeParseNumber;
}
//# sourceMappingURL=system-monitor.d.ts.map