import { RouteObject, To } from "react-router"; //#region src/services/vite/ssr/preloadRoute.d.ts declare const registerSiteRouteTree: (routes: RouteObject[]) => void; /** Warm every lazy module a href matches within `routes`. */ declare const preloadMatchedRoutes: (routes: RouteObject[], href: string) => void; declare const preloadHref: (href: string, warn?: (message: string) => void) => void; /** * Returns a fire-and-forget function that warms the lazy modules for `to`. * Intended for hover / focus / touch handlers on links — React Router Data Mode * has no ``. * * Matching runs against the current site's tree, so a path belonging to another * site never warms. Outside SSR (and during server render) it is a no-op. */ declare const usePreloadRoute: (to: To) => (() => void); //#endregion export { preloadHref, preloadMatchedRoutes, registerSiteRouteTree, usePreloadRoute };