/** * Stale-chunk recovery: after a deploy, a still-open SPA may try to lazy-load a * hashed chunk that no longer exists. We detect that class of error and reload * once (with a cache-busting query param), guarding against reload loops via * sessionStorage keyed on the current entry script. * * Factory form: each app passes its own `storagePrefix` (the only thing that * differed across the three copies) so their sessionStorage keys don't collide. */ export interface ChunkLoadErrorOptions { /** Per-app sessionStorage namespace, e.g. `nexior:chunk-load-reload`. */ storagePrefix: string; /** Query param appended on the cache-busting reload. Default `__chunk_reload`. */ reloadQueryParam?: string; } export interface ChunkLoadErrorHandler { isChunkLoadError(error: unknown): boolean; handleChunkLoadError(error: unknown): boolean; install(): void; } export declare function createChunkLoadErrorHandler(options: ChunkLoadErrorOptions): ChunkLoadErrorHandler; //# sourceMappingURL=chunkLoadError.d.ts.map