import { type AgentNativeRouteWarmupConfigInput } from "../shared/route-warmup-config.js"; type ReactRouterManifestRoute = { id: string; parentId?: string; path?: string; index?: boolean; module?: string; clientActionModule?: string; clientLoaderModule?: string; hydrateFallbackModule?: string; imports?: string[]; }; type ReactRouterManifest = { routes?: Record; }; type WarmupRouteObject = { id: string; path?: string; index?: boolean; children?: WarmupRouteObject[]; }; declare global { interface Window { __reactRouterContext?: { basename?: string; }; __reactRouterManifest?: ReactRouterManifest; } } export interface AgentNativeRouteWarmupProps { config?: AgentNativeRouteWarmupConfigInput; } declare function parseBuildTimeRouteWarmupConfig(raw: AgentNativeRouteWarmupConfigInput | string | undefined): AgentNativeRouteWarmupConfigInput | undefined; declare function hasReactRouterManifestRoutes(): boolean; declare function getManifestRouteTree(manifest: ReactRouterManifest): WarmupRouteObject[]; declare function hasWarmableRouteAssets(): boolean; declare function routeAssetUrlsForHref(href: string): string[]; declare function renderWarmupLinksForSelector(selector: string): HTMLAnchorElement[]; declare function resetRouteWarmupCachesForTests(): void; /** * Warms React Router route data and matched route JS without using native link * prefetch. React Router's built-in `` does both pieces, but * its data side emits ``; Chrome sends * `Sec-Purpose: prefetch` for that request and Cloudflare Speed Brain can 503 * dynamic `.data` routes before the CDN/origin can serve the cacheable result. * * Keep `.data` warmup as ordinary `fetch()` and JS warmup as `modulepreload` * unless production providers stop rejecting `Sec-Purpose: prefetch`. */ export declare function AgentNativeRouteWarmup({ config, }: AgentNativeRouteWarmupProps): null; export declare const __routeWarmupInternalsForTests: { getManifestRouteTree: typeof getManifestRouteTree; hasReactRouterManifestRoutes: typeof hasReactRouterManifestRoutes; hasWarmableRouteAssets: typeof hasWarmableRouteAssets; parseBuildTimeRouteWarmupConfig: typeof parseBuildTimeRouteWarmupConfig; renderWarmupLinksForSelector: typeof renderWarmupLinksForSelector; routeAssetUrlsForHref: typeof routeAssetUrlsForHref; resetRouteWarmupCachesForTests: typeof resetRouteWarmupCachesForTests; }; export {}; //# sourceMappingURL=route-warmup.d.ts.map