/** * Health Worker Manager * * Manages the health check worker thread, sending periodic stats updates * and handling worker lifecycle. */ export interface HealthWorkerConfig { /** Port for health check server (default: main port + 1) */ port: number; /** Interval for sending stats updates (default: 5000ms) */ statsInterval?: number; } export interface HealthStatsProvider { getUptime: () => number; getMemoryMB: () => number; getRelayConnected: () => boolean; getAgentCount: () => number; getStatus: () => 'healthy' | 'busy' | 'degraded'; } export declare class HealthWorkerManager { private worker; private statsInterval; private config; private statsProvider; private ready; constructor(config: HealthWorkerConfig, statsProvider: HealthStatsProvider); /** * Start the health worker thread */ start(): Promise; /** * Stop the health worker thread */ stop(): Promise; /** * Check if worker is ready */ isReady(): boolean; /** * Get the port the health worker is listening on */ getPort(): number; /** * Start periodic stats updates to worker */ private startStatsUpdates; /** * Stop stats updates */ private stopStatsUpdates; /** * Send current stats to worker */ private sendStats; } /** Default health port offset from main port */ export declare const HEALTH_PORT_OFFSET = 1; /** * Calculate health port from main port */ export declare function getHealthPort(mainPort: number): number; //# sourceMappingURL=health-worker-manager.d.ts.map