/**
 * Health Check Type Definitions
 * Shared types for health monitoring - safe for client-side use
 */

export type HealthStatus = 'operational' | 'degraded' | 'down';

export interface HealthCheckResult {
  name: string;
  status: HealthStatus;
  responseTime: number; // in milliseconds
  message?: string;
  lastChecked: string;
  details?: Record<string, unknown>;
}

export interface SystemHealth {
  overall: HealthStatus;
  components: HealthCheckResult[];
  timestamp: string;
}
