export declare class CircuitBreaker {
    private readonly threshold;
    private readonly resetMs;
    private failures;
    private openedAt;
    constructor(threshold?: number, resetMs?: number);
    run<T>(fn: () => Promise<T>): Promise<T>;
    private isOpen;
}
