/** * Retry utility with exponential backoff * Used by database adapters for transient connection errors. */ export interface RetryOptions { /** Maximum number of retries (default: 1) */ retries?: number; /** Base delay in ms; delay = baseDelayMs * 2^attempt (default: 50) */ baseDelayMs?: number; /** Custom error classifier; default uses isConnectionErrorMessage */ isRetryable?: (error: unknown) => boolean; } /** * Check if an error message indicates a transient connection problem. * Covers common patterns across MySQL, PostgreSQL, and generic socket errors. */ export declare function isConnectionErrorMessage(msg: string): boolean; /** * Execute fn with retry on transient connection errors. * Throws if all retries are exhausted. */ export declare function withRetry(fn: () => Promise, options?: RetryOptions): Promise; //# sourceMappingURL=retry.d.ts.map