/** * Passive availability detection with 3-strike circuit breaker. * * The tracker never polls engram — it only records outcomes of calls * that the client already makes. After 3 consecutive failures the server * is marked unavailable for a 60-second cooldown period, after which the * next call is allowed through as a probe. */ export declare class AvailabilityTracker { private consecutiveFailures; private unavailableSince; /** * Record a successful call. Resets the failure counter and restores * availability if the server was in cooldown. */ recordSuccess(): void; /** * Record a failed call. After STRIKE_THRESHOLD consecutive failures * the server enters a cooldown period. */ recordFailure(): void; /** * Returns true if the server is considered available. * * After the cooldown period expires the server is tentatively considered * available again so that the next call can act as a probe. If that call * succeeds, `recordSuccess()` completes the recovery. If it fails, * `recordFailure()` restarts the cooldown immediately. */ isAvailable(): boolean; /** Remaining cooldown in milliseconds, or 0 if available. */ remainingCooldownMs(): number; } //# sourceMappingURL=availability.d.ts.map