export function spreadsLast(node: any): 1 | -1; export function getNearestAncestorNodeWithSpreadParam(routeFragments: RouteFragment[]): RNodeRuntime; export function getUrlFragments(url: any): any; export function indexOfNode(fragments: any, node: any): any; export function URIDecodeObject(obj: T): T; /** * @template P * @typedef {Object} LoadCacheFetchOptions * @prop {(() => Promise

) |( ()=> P)} hydrate * @prop {(res:P) => Boolean|Number} [clear] **/ /** * @template P * LoadCache is a simple class implementation for caching Route.load */ export class LoadCache

{ /** @type {Map|P >} */ map: Map | P>; /** * Fetches data for the given ID and caches it. * @param {any} id * @param {LoadCacheFetchOptions

} options * @returns {Promise

} */ fetch(id: any, options: LoadCacheFetchOptions

): Promise

; /** * Handles the Promise resolution, cache expiration, and cache clearing. * @param {any} id * @param {LoadCacheFetchOptions

} options */ _handlePromise(id: any, options: LoadCacheFetchOptions

): Promise; } export type LoadCacheFetchOptions

= { hydrate: (() => Promise

) | (() => P); /** * ** */ clear?: (res: P) => boolean | number; };