import type { HandlerContext } from "../../types.js"; import type { ResponseBuilder } from "../../../../security/index.js"; import type { CacheRepository } from "../../../../repositories/types.js"; import { type DependencyPinningSnapshot } from "../../../../transforms/esm/package-registry.js"; type ComponentLoaderModule = typeof import("../../../../modules/react-loader/component-loader.js"); type ComponentSourceLoader = ComponentLoaderModule["loadComponentFromSource"]; interface ErrorPageOptions { statusCode: number; error?: Error; pathname?: string; } /** * Inject a CacheRepository for testing. * Call with null to restore default Map-based caching. */ export declare function __injectCacheForTests(cacheRepo: CacheRepository | null): void; export declare function __setComponentSourceLoaderForTests(loader: ComponentSourceLoader | null): void; export declare function tryErrorPageFallback(req: Request, ctx: HandlerContext, builder: ResponseBuilder, options: ErrorPageOptions, requestedDependencySnapshot?: DependencyPinningSnapshot): Promise; export {}; //# sourceMappingURL=error-page-fallback.d.ts.map