/** * SSR Circuit Breaker * * Circuit breaker pattern for SSR module transform failures. * Tracks component failures and temporarily blocks repeated transform attempts * for components that have exceeded the failure threshold. * * @module module-system/react-loader/ssr-module-loader/ssr-circuit-breaker */ /** * Manages the circuit breaker state for SSR module transforms. * * When a component fails to transform/load repeatedly (exceeding the threshold), * the circuit breaker "opens" and blocks further attempts for a cooldown period. * After the cooldown, the circuit resets and allows retry attempts. */ export declare class SSRCircuitBreaker { /** * Check if the circuit breaker is open for a given cache key. * Throws if the component has exceeded the failure threshold and * the cooldown period hasn't elapsed. */ check(circuitKey: string, filePath: string): void; /** * Record a successful load, resetting the failure count. */ recordSuccess(circuitKey: string): void; /** * Record a failure, incrementing the failure count. */ recordFailure(circuitKey: string): void; } //# sourceMappingURL=ssr-circuit-breaker.d.ts.map