/** * Copyright (c) 2024–present AxonSDK. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ import type { CircuitState } from './types.js'; export declare class CircuitBreaker { private _state; private failures; private lastOpenedAt; private readonly threshold; private readonly recoveryTimeout; constructor(threshold?: number, recoveryTimeoutMs?: number); get state(): CircuitState; get isCallable(): boolean; recordSuccess(): void; recordFailure(): void; reset(): void; /** For testing — force a specific state. */ forceState(state: CircuitState): void; } //# sourceMappingURL=circuit-breaker.d.ts.map