export interface PerformanceMetric { name: string; startTime: number; endTime?: number; duration?: number; } export declare class PerformanceMonitor { private static metrics; private static globalStart; /** * Start timing an operation */ static start(name: string): void; /** * End timing an operation */ static end(name: string): number; /** * Get duration of an operation */ static getDuration(name: string): number; /** * Clear all metrics */ static clear(): void; /** * Estimate remaining time based on progress */ static estimateRemaining(completed: number, total: number, elapsedMs: number): string; } /** * Connection pool for SSH connections to improve performance */ export declare class SSHConnectionPool { private static connections; /** * Get or create SSH connection */ static getConnection(host: string, config: any, createFn: () => Promise): Promise; /** * Close all connections */ static closeAll(): Promise; /** * Close specific connection */ static close(host: string, port: number): Promise; } /** * Decorator to measure function execution time */ export declare function measure(metricName?: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; //# sourceMappingURL=Performance.d.ts.map