/**
 * 错误代码枚举
 */
export declare enum ErrorCode {
    PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED",// 当前平台不支持该功能
    COMMAND_FAILED = "COMMAND_FAILED",// 系统命令执行失败
    PARSE_ERROR = "PARSE_ERROR",// 命令输出或数据解析失败
    PERMISSION_DENIED = "PERMISSION_DENIED",// 权限不足无法完成操作
    TIMEOUT = "TIMEOUT",// 操作超过设定超时时间
    INVALID_CONFIG = "INVALID_CONFIG",// 提供的配置无效
    NOT_AVAILABLE = "NOT_AVAILABLE",// 指标暂时不可用
    FILE_NOT_FOUND = "FILE_NOT_FOUND",// 依赖的文件或路径不存在
    NETWORK_ERROR = "NETWORK_ERROR"
}
/**
 * 监控错误类
 */
export declare class MonitorError extends Error {
    readonly code: ErrorCode;
    readonly platform: string;
    readonly details?: any;
    constructor(message: string, code: ErrorCode, platform: string, details?: any);
    /**
     * 转换为 JSON 对象
     */
    toJSON(): object;
    /**
     * 创建平台不支持错误
     */
    static createPlatformNotSupported(platform: string, feature: string): MonitorError;
    /**
     * 创建命令执行失败错误
     */
    static createCommandFailed(platform: string, command: string, details?: any): MonitorError;
    /**
     * 创建解析错误
     */
    static createParseError(platform: string, data: string, reason?: string): MonitorError;
}
//# sourceMappingURL=errors.d.ts.map