import { RouteUpdate } from './routeUpdate'; import { ResolvedRoute } from './resolved'; import { RouteDataOf } from './route'; import { QuerySource } from './querySource'; export type RouterRoute = { /** * Unique identifier for the route, generated by router. */ readonly id: TRoute['id']; /** * Identifier for the route as defined by user. Name must be unique among named routes. Name is used for routing and for matching. */ readonly name: TRoute['name']; /** * The specific route properties that were matched in the current route. */ readonly matched: TRoute['matched']; /** * The specific route properties that were matched in the current route, including any ancestors. * Order of routes will be from greatest ancestor to narrowest matched. */ readonly matches: TRoute['matches']; /** * Hash value of the route. */ readonly hash: string; /** * Update the route. */ readonly update: RouteUpdate; /** * String value of the resolved URL. */ readonly href: TRoute['href']; /** * Title of the route. */ readonly title: TRoute['title']; /** * What the route's loaders resolve to, keyed by loader name. A route whose only loader is unnamed * exposes that loader's data here directly. */ readonly data: RouteDataOf; params: TRoute['params']; state: TRoute['state']; get query(): URLSearchParams; set query(value: QuerySource); };