interface FarmChunkRecoveryOptions { /** * How long a page is considered already recovered before another chunk * failure may trigger a reload. Defaults to 30 seconds. */ maxAgeMs?: number; /** * Override the storage key. Mostly useful for tests and embedded runtimes. */ storageKey?: string; /** * Called right before Farm reloads the page. */ onRecover?: (error: unknown) => void; /** * Test hooks for browser globals. */ reload?: () => void; storage?: Pick | null; location?: Pick; now?: () => number; } declare function isChunkLoadError(errorLike: unknown): boolean; declare function installChunkErrorRecovery(options?: FarmChunkRecoveryOptions): () => void; export { type FarmChunkRecoveryOptions as F, isChunkLoadError as a, installChunkErrorRecovery as i };