export type HealthStatus = 'healthy' | 'unhealthy' | 'degraded'; export interface DependencyHealth { name: string; status: HealthStatus; message?: string; latency?: number; lastCheck?: Date; } export interface HealthCheckResult { status: HealthStatus; version: string; uptime: number; timestamp: Date; dependencies: Record; features: Record; metrics?: { requests: number; errors: number; activeSession: number; }; } export declare class HealthService { private static instance; private readonly startTime; private cachedHealth?; private readonly cacheTimeout; private constructor(); static getInstance(): HealthService; /** * Perform comprehensive health check */ checkHealth(): Promise; /** * Check SonarQube connectivity */ private checkSonarQube; /** * Get metrics summary */ private getMetricsSummary; /** * Get readiness status (for Kubernetes) */ checkReadiness(): Promise<{ ready: boolean; checks: Record; }>; /** * Reset the singleton instance (for testing) */ static resetInstance(): void; }