/**
 * Health Check Service
 *
 * Provides comprehensive health checks for all Vorion subsystems.
 * Supports Kubernetes-style liveness and readiness probes.
 *
 * @packageDocumentation
 */
import type { FastifyInstance } from 'fastify';
export type HealthStatus = 'healthy' | 'degraded' | 'unhealthy';
export interface ComponentHealth {
    name: string;
    status: HealthStatus;
    message?: string;
    latencyMs?: number;
    details?: Record<string, unknown>;
}
export interface OverallHealth {
    status: HealthStatus;
    version: string;
    uptime: number;
    timestamp: string;
    components: ComponentHealth[];
}
export interface HealthCheck {
    name: string;
    check: () => Promise<ComponentHealth>;
    critical?: boolean;
}
/**
 * Register a health check
 */
export declare function registerHealthCheck(check: HealthCheck): void;
/**
 * Unregister a health check
 */
export declare function unregisterHealthCheck(name: string): void;
/**
 * Clear all health checks
 */
export declare function clearHealthChecks(): void;
/**
 * Database health check factory
 */
export declare function createDatabaseHealthCheck(name: string, pingFn: () => Promise<void>): HealthCheck;
/**
 * Redis health check factory
 */
export declare function createRedisHealthCheck(name: string, pingFn: () => Promise<string>): HealthCheck;
/**
 * External service health check factory
 */
export declare function createExternalServiceHealthCheck(name: string, url: string, timeoutMs?: number): HealthCheck;
/**
 * Memory usage health check
 */
export declare function createMemoryHealthCheck(maxHeapUsedMB?: number): HealthCheck;
/**
 * Agent Anchor health check factory
 */
export declare function createAgentAnchorHealthCheck(getStats: () => Promise<{
    agentCount: number;
    pendingAttestations: number;
    cacheStatus: 'connected' | 'disconnected';
}>): HealthCheck;
/**
 * A2A health check factory
 */
export declare function createA2AHealthCheck(getStats: () => Promise<{
    endpoints: number;
    activeChains: number;
    circuitBreakersOpen: number;
}>): HealthCheck;
/**
 * Sandbox health check factory
 */
export declare function createSandboxHealthCheck(getStats: () => Promise<{
    activeContainers: number;
    maxContainers: number;
    runtimeAvailable: boolean;
}>): HealthCheck;
/**
 * Run all health checks
 */
export declare function checkHealth(): Promise<OverallHealth>;
/**
 * Check if system is alive (for liveness probe)
 */
export declare function isAlive(): boolean;
/**
 * Check if system is ready (for readiness probe)
 */
export declare function isReady(): Promise<boolean>;
/**
 * Register health check routes
 */
export declare function registerHealthRoutes(fastify: FastifyInstance): Promise<void>;
/**
 * Initialize health check system
 */
export declare function initHealthChecks(): void;
//# sourceMappingURL=health.d.ts.map