/** * Retry utility with exponential backoff */ export interface RetryOptions { maxAttempts?: number; baseDelay?: number; maxDelay?: number; shouldRetry?: (error: any) => boolean; onRetry?: (attempt: number, error: any, delay: number) => void; } /** * Check if error is a network error (no internet connection) */ export declare function isNetworkError(error: any): boolean; /** * Check if error is a timeout error */ export declare function isTimeoutError(error: any): boolean; /** * Wrap an async function with retry logic */ export declare function withRetry(fn: () => Promise, options?: RetryOptions): Promise; /** * Create a fetch with timeout */ export declare function fetchWithTimeout(url: string, options?: RequestInit & { timeout?: number; }): Promise;