/** * Exponential backoff utility for connection reconnection */ export interface BackoffConfig { base: number; max: number; jitter: number; } export declare class ExponentialBackoff { private config; private attempt; constructor(config: BackoffConfig); /** * Calculate the next delay based on the current attempt number * Formula: min(base * 2^attempt, max) with jitter */ next(): number; /** * Get the current attempt number */ getAttempt(): number; /** * Reset the backoff state */ reset(): void; /** * Peek at what the next delay would be without incrementing */ peek(): number; }