/** * Health check HTTP server. * Provides /health endpoint for container orchestration. */ import { type Server } from 'node:http'; /** * Health status response */ export interface HealthStatus { /** Overall status */ status: 'healthy' | 'busy' | 'unhealthy'; /** Uptime in milliseconds */ uptime?: number; /** Last heartbeat timestamp */ lastHeartbeat?: string; /** Currently executing job ID */ currentJob?: string; /** Additional metadata */ metadata?: Record; } /** * Health server options */ export interface HealthServerOptions { /** Port to listen on */ port: number; /** Host to bind to */ host?: string; /** Function to get current health status */ getStatus: () => HealthStatus; } /** * Health check HTTP server */ export interface HealthServer { /** Start listening */ listen(): void; /** Stop the server */ close(): void; /** Get the underlying HTTP server */ getServer(): Server; } /** * Create a health check HTTP server */ export declare function createHealthServer(options: HealthServerOptions): HealthServer; //# sourceMappingURL=server.d.ts.map