/** * Performance Analysis Factory * * Factory functions for analyzing and measuring performance impacts */ import type { PerformanceImpact, NetworkOverride, NetworkInfo } from '@plyaz/types/api'; import { NETWORK_QUALITY } from '@plyaz/types/api'; /** * Calculate performance impact based on network conditions */ export declare function calculatePerformanceImpact(params: { networkInfo: NetworkInfo; networkQuality: NETWORK_QUALITY; activeOverrides: Map; }): PerformanceImpact; /** * Calculate request performance metrics */ export declare function calculateRequestMetrics(params: { requestCount: number; totalDuration: number; errorCount: number; cacheHits: number; }): { avgResponseTime: number; successRate: number; cacheHitRate: number; throughput: number; }; /** * Analyze configuration performance impact */ export declare function analyzeConfigImpact(config: Record): { impact: 'positive' | 'negative' | 'neutral'; factors: string[]; suggestions: string[]; }; /** * Create performance benchmark */ export declare function createPerformanceBenchmark(params: { name: string; operations: number; duration: number; memoryUsed?: number; }): { name: string; opsPerSecond: number; avgDuration: number; memoryPerOp?: number; rating: 'excellent' | 'good' | 'fair' | 'poor'; }; //# sourceMappingURL=performance.d.ts.map