triyak-react-performance
Version:
Advanced React performance optimization toolkit - Built with modern React best practices and performance optimization techniques
24 lines • 989 B
TypeScript
import React from 'react';
import { PerformanceMetrics, PerformanceAlert, PerformanceConfig, PerformanceReport } from '../types/performance';
interface TriyakPerformanceMonitorProps {
lcpThreshold?: number;
fidThreshold?: number;
clsThreshold?: number;
ttfbThreshold?: number;
fcpThreshold?: number;
enableAIOptimization?: boolean;
optimizationMode?: 'conservative' | 'aggressive' | 'custom';
monitoring?: boolean;
alerts?: boolean;
reporting?: boolean;
autoOptimize?: boolean;
onPerformanceAlert?: (alert: PerformanceAlert) => void;
onMetrics?: (metrics: PerformanceMetrics) => void;
onReport?: (report: PerformanceReport) => void;
onOptimization?: (optimization: any) => void;
children: React.ReactNode;
config?: Partial<PerformanceConfig>;
}
declare const TriyakPerformanceMonitor: React.FC<TriyakPerformanceMonitorProps>;
export default TriyakPerformanceMonitor;
//# sourceMappingURL=TriyakPerformanceMonitor.d.ts.map