/** * Performance Analyzer - Real-time performance monitoring and bottleneck detection * * Monitors system performance, detects bottlenecks, analyzes trends, and provides * intelligent recommendations for optimization across the AI integration ecosystem. */ import { EventEmitter } from 'eventemitter3'; import { PerformanceConfig, PerformanceMetrics, Bottleneck, Task, OperationResult } from '../types'; export declare class PerformanceAnalyzer extends EventEmitter { private config; private metricsCollector; private bottleneckDetector; private trendAnalyzer; private alertManager; private performanceHistory; private monitoringTimer; private isMonitoring; constructor(config: PerformanceConfig); initialize(): Promise; private startMonitoring; private collectAndAnalyzeMetrics; private calculateSystemLoad; private calculateHealthScore; private handleBottlenecks; private applyOptimization; private generateOptimizationStrategy; private executeOptimizationAction; /** * Analyze task performance */ analyzeTask(task: Task): Promise; private calculateTaskComplexity; private estimateResourceRequirements; private identifyRiskFactors; private generateTaskRecommendations; private getRecentPerformanceAverage; /** * Get comprehensive performance report */ generatePerformanceReport(): Promise; private generateSystemRecommendations; private calculateHistoryTimespan; getMetrics(): Promise; shutdown(): Promise; } interface TaskAnalysis { taskId: string; complexity: number; estimatedResources: ResourceRequirements; riskFactors: RiskFactor[]; recommendations: string[]; confidence: number; } interface ResourceRequirements { cpuEstimate: number; memoryEstimate: number; timeEstimate: number; agentsRequired: number; } interface RiskFactor { type: string; severity: 'low' | 'medium' | 'high' | 'critical'; description: string; mitigation: string; } interface PerformanceReport { timestamp: Date; currentMetrics: PerformanceMetrics; trends: any; bottlenecks: Bottleneck[]; healthScore: number; recommendations: string[]; historicalData: { totalSnapshots: number; timespan: number; averagePerformance: PerformanceMetrics; }; } export {}; //# sourceMappingURL=PerformanceAnalyzer.d.ts.map