/**
 * Periodic health check for the OpenCode server.
 *
 * Monitors OpenCode server health by polling GET /global/health every 30s.
 * After 3 consecutive failures, triggers an auto-restart via the supervisor.
 */
export interface HealthStatus {
    healthy: boolean;
    lastHealthCheck: number | null;
    consecutiveFailures: number;
}
/**
 * Start the periodic health check loop.
 *
 * @param restartFn Called when health check determines a restart is needed
 *   (after MAX_CONSECUTIVE_FAILURES consecutive failures).
 */
export declare function startHealthCheck(restartFn: () => Promise<void>): void;
/**
 * Stop the periodic health check loop.
 */
export declare function stopHealthCheck(): void;
/**
 * Get the current health status for reporting (e.g., /healthz endpoint).
 */
export declare function getHealthStatus(): HealthStatus;
/**
 * Reset health check state (for testing).
 */
export declare function resetHealthCheck(): void;
//# sourceMappingURL=health-check.d.ts.map