import { ComponentType, ExoticComponent, ComponentProps } from 'react'; /** * Check if an error is a chunk/module load failure. * Covers both production chunk errors and Vite dev server 504 errors. */ export declare function isChunkLoadError(error: unknown): boolean; /** * Wrap React.lazy() with automatic retry for chunk load failures. * * Retry strategy: * - Attempt 1: immediate * - Attempt 2: after retryDelay (1.5s default) * - Attempt 3: after retryDelay * 2 (3s default) * - If all fail: throw so the error boundary can offer an explicit reload action * * @param factory - The dynamic import factory function * @param maxRetries - Maximum number of retries before page reload (default: 2) * @param retryDelay - Base delay in ms between retries (default: 1500) */ export declare function lazyWithRetry>(factory: () => Promise<{ default: T; }>, maxRetries?: number, retryDelay?: number): ExoticComponent> & { readonly _result: T; }; //# sourceMappingURL=lazyWithRetry.d.ts.map