/**
 * Service Health Gate Module
 *
 * CONTROL PLANE HARDENING
 *
 * PURPOSE: Validate Ruvector-backed service availability before ANY remote execution.
 *          This gate ensures the CLI NEVER executes against misconfigured or unavailable services.
 *
 * CRITICAL REQUIREMENTS:
 * - CLI MUST require Ruvector-backed services
 * - CLI MUST fail loudly if services are misconfigured
 * - Abort command if health check fails
 *
 * FORBIDDEN:
 * - Fallback behavior
 * - Local caching of results
 * - Silent failures
 */
/**
 * Exit code for service unavailable.
 */
export declare const SERVICE_UNAVAILABLE_EXIT_CODE: 69;
export declare class ServiceHealthError extends Error {
    readonly serviceName: string;
    readonly healthCheckUrl: string;
    readonly cause?: Error;
    constructor(serviceName: string, healthCheckUrl: string, cause?: Error);
}
export interface ServiceHealthResult {
    healthy: boolean;
    service: string;
    url: string;
    latency?: number;
    error?: string;
}
export interface ServiceHealthGateResult {
    passed: boolean;
    results: ServiceHealthResult[];
    exitCode?: number;
    message?: string;
}
/**
 * Check if all critical services are healthy.
 * Returns a structured result - does not exit the process.
 */
export declare function checkServiceHealthGate(): Promise<ServiceHealthGateResult>;
/**
 * Enforce the service health gate. Exits the process if any critical service is unhealthy.
 * This is the HARD gate that blocks all operations if services are misconfigured.
 */
export declare function enforceServiceHealthGate(): Promise<void>;
/**
 * Check if a command requires service health check.
 */
export declare function requiresHealthCheck(command: string): boolean;
//# sourceMappingURL=service-health-gate.d.ts.map