/** * router * * Copyright (c) TanStack * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ export { default as invariant } from 'tiny-invariant'; import { Store } from '@tanstack/store'; interface RouterHistory { location: RouterLocation; listen: (cb: () => void) => () => void; push: (path: string, state: any) => void; replace: (path: string, state: any) => void; go: (index: number) => void; back: () => void; forward: () => void; } interface ParsedPath { href: string; pathname: string; search: string; hash: string; } interface RouterLocation extends ParsedPath { state: any; } declare function createBrowserHistory(opts?: { getHref?: () => string; createHref?: (path: string) => string; }): RouterHistory; declare function createHashHistory(): RouterHistory; declare function createMemoryHistory(opts?: { initialEntries: string[]; initialIndex?: number; }): RouterHistory; interface FrameworkGenerics { } type GetFrameworkGeneric = U extends keyof FrameworkGenerics ? FrameworkGenerics[U] : any; type NoInfer = [T][T extends any ? 0 : never]; type IsAny = 1 extends 0 & T ? Y : N; type IsAnyBoolean = 1 extends 0 & T ? true : false; type IsKnown = unknown extends T ? N : Y; type PickAsRequired = Omit & Required>; type PickAsPartial = Omit & Partial>; type PickUnsafe = K extends keyof T ? Pick : never; type PickExtra = Expand<{ [TKey in keyof K as string extends TKey ? never : TKey extends keyof T ? never : TKey]: K[TKey]; }>; type PickRequired = { [K in keyof T as undefined extends T[K] ? never : K]: T[K]; }; type Expand = T extends object ? T extends infer O ? { [K in keyof O]: O[K]; } : never : T; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => any ? I : never; type Values = O[ValueKeys]; type ValueKeys = Extract; type DeepAwaited = T extends Promise ? DeepAwaited : T extends Record> ? { [K in A]: DeepAwaited; } : T; type PathParamMask = TRoutePath extends `${infer L}/$${infer C}/${infer R}` ? PathParamMask<`${L}/${string}/${R}`> : TRoutePath extends `${infer L}/$${infer C}` ? PathParamMask<`${L}/${string}`> : TRoutePath; type Timeout = ReturnType; type Updater = TResult | ((prev?: TPrevious) => TResult); type PickExtract = { [K in keyof T as T[K] extends U ? K : never]: T[K]; }; type PickExclude = { [K in keyof T as T[K] extends U ? never : K]: T[K]; }; declare function last(arr: T[]): T | undefined; declare function warning(cond: any, message: string): cond is true; declare function functionalUpdate(updater: Updater, previous: TResult): TResult; declare function pick(parent: T, keys: K[]): Pick; /** * This function returns `a` if `b` is deeply equal. * If not, it will replace any deeply equal children of `b` with those of `a`. * This can be used for structural sharing between immutable JSON values for example. * Do not use this with signals */ declare function replaceEqualDeep(prev: any, _next: T): T; declare function isPlainObject(o: any): boolean; interface RegisterRouter { } type AnyRouter = Router; type RegisteredRouter = RegisterRouter extends { router: Router; } ? Router : Router; type RegisteredAllRouteInfo = RegisterRouter extends { router: Router; } ? TAllRouteInfo : AnyAllRouteInfo; interface LocationState { } interface ParsedLocation { href: string; pathname: string; search: TSearchObj; searchStr: string; state: TState; hash: string; key?: string; } interface FromLocation { pathname: string; search?: unknown; key?: string; hash?: string; } type SearchSerializer = (searchObj: Record) => string; type SearchParser = (searchStr: string) => Record; type FilterRoutesFn = >(routeConfigs: TRoute[]) => TRoute[]; interface RouterOptions { history?: RouterHistory; stringifySearch?: SearchSerializer; parseSearch?: SearchParser; filterRoutes?: FilterRoutesFn; defaultPreload?: false | 'intent'; defaultPreloadDelay?: number; defaultComponent?: GetFrameworkGeneric<'Component'>; defaultErrorComponent?: GetFrameworkGeneric<'ErrorComponent'>; defaultPendingComponent?: GetFrameworkGeneric<'Component'>; defaultLoaderMaxAge?: number; defaultLoaderGcMaxAge?: number; caseSensitive?: boolean; routeConfig?: TRouteConfig; basepath?: string; Router?: (router: AnyRouter) => void; createRoute?: (opts: { route: AnyRoute; router: AnyRouter; }) => void; context?: TRouterContext; loadComponent?: (component: GetFrameworkGeneric<'Component'>) => Promise>; onRouteChange?: () => void; fetchServerDataFn?: FetchServerDataFn; } type FetchServerDataFn = (ctx: { router: AnyRouter; routeMatch: RouteMatch; }) => Promise; interface LoaderState { loadedAt: number; loaderContext: LoaderContext; } interface RouterStore { status: 'idle' | 'pending'; latestLocation: ParsedLocation; currentMatches: RouteMatch[]; currentLocation: ParsedLocation; pendingMatches?: RouteMatch[]; pendingLocation?: ParsedLocation; lastUpdated: number; } type ListenerFn = () => void; interface BuildNextOptions { to?: string | number | null; params?: true | Updater; search?: true | Updater; hash?: true | Updater; state?: LocationState; key?: string; from?: string; fromCurrent?: boolean; __preSearchFilters?: SearchFilter[]; __postSearchFilters?: SearchFilter[]; } type MatchCacheEntry = { gc: number; match: RouteMatch; }; interface MatchLocation { to?: string | number | null; fuzzy?: boolean; caseSensitive?: boolean; from?: string; fromCurrent?: boolean; } interface MatchRouteOptions { pending?: boolean; caseSensitive?: boolean; fuzzy?: boolean; } interface DehydratedRouterState extends Pick { currentMatches: DehydratedRouteMatch[]; } interface DehydratedRouter { state: DehydratedRouterState; context: TRouterContext; } type MatchCache = Record; interface DehydratedRouteMatch { id: string; state: Pick, 'status'>; } interface RouterContext { } declare const defaultFetchServerDataFn: FetchServerDataFn; declare class Router, TRouterContext = unknown> { #private; types: { RouteConfig: TRouteConfig; AllRouteInfo: TAllRouteInfo; }; options: PickAsRequired, 'stringifySearch' | 'parseSearch' | 'context'>; history: RouterHistory; basepath: string; routeTree: Route; routesById: RoutesById; navigateTimeout: undefined | Timeout; nextAction: undefined | 'push' | 'replace'; navigationPromise: undefined | Promise; store: Store>; startedLoadingAt: number; resolveNavigation: () => void; constructor(options?: RouterOptions); reset: () => void; mount: () => () => void; update: = RouteConfig, TAllRouteInfo_1 extends AnyAllRouteInfo = AllRouteInfo, TRouterContext_1 = unknown>(opts?: RouterOptions | undefined) => Router; buildNext: (opts: BuildNextOptions) => ParsedLocation<{}, LocationState>; cancelMatches: () => void; load: (next?: ParsedLocation) => Promise; getRoute: (id: TId) => Route; loadRoute: (navigateOpts?: BuildNextOptions) => Promise; preloadRoute: (navigateOpts?: BuildNextOptions) => Promise>[]>; matchRoutes: (pathname: string, opts?: { strictParseParams?: boolean; }) => RouteMatch>[]; loadMatches: (resolvedMatches: RouteMatch[], loaderOpts?: { preload?: boolean; }) => Promise; reload: () => void; resolvePath: (from: string, path: string) => string; navigate: = "/", TTo extends string = ".">({ from, to, search, hash, replace, params, }: NavigateOptions) => Promise; matchRoute: = "/", TTo extends string = ".">(location: ToOptions>>, opts?: MatchRouteOptions) => false | TAllRouteInfo["routeInfoById"][ResolveRelativePath>]["allParams"]; buildLink: = "/", TTo extends string = ".">({ from, to, search, params, hash, target, replace, activeOptions, preload, preloadMaxAge: userPreloadMaxAge, preloadGcMaxAge: userPreloadGcMaxAge, preloadDelay: userPreloadDelay, disabled, }: LinkOptions) => LinkInfo; dehydrate: () => DehydratedRouter; hydrate: (dehydratedRouter: DehydratedRouter) => void; } interface RouteMatchStore { routeSearch: TRouteInfo['searchSchema']; search: Expand; status: 'idle' | 'pending' | 'success' | 'error'; error?: unknown; updatedAt: number; } declare class RouteMatch { #private; route: Route; router: Router; store: Store>; id: string; pathname: string; params: TRouteInfo['allParams']; component: GetFrameworkGeneric<'Component'>; errorComponent: GetFrameworkGeneric<'ErrorComponent'>; pendingComponent: GetFrameworkGeneric<'Component'>; abortController: AbortController; onLoaderDataListeners: Set<() => void>; parentMatch?: RouteMatch; __loadPromise?: Promise; __onExit?: void | ((matchContext: { params: TRouteInfo['allParams']; search: TRouteInfo['fullSearchSchema']; }) => void); constructor(router: AnyRouter, route: Route, opts: { id: string; params: TRouteInfo['allParams']; pathname: string; }); cancel: () => void; load: () => Promise; fetch: () => Promise; __setParentMatch: (parentMatch?: RouteMatch) => void; __validate: () => void; } declare const rootRouteId: "__root__"; type RootRouteId = typeof rootRouteId; type AnyLoaderData = {}; type AnyPathParams = {}; type AnySearchSchema = {}; interface RouteMeta { } type SearchSchemaValidator = SearchSchemaValidatorObj | SearchSchemaValidatorFn; type SearchSchemaValidatorObj = { parse?: SearchSchemaValidatorFn; }; type SearchSchemaValidatorFn = (searchObj: Record) => {} extends TParentSchema ? TReturn : keyof TReturn extends keyof TParentSchema ? { error: 'Top level search params cannot be redefined by child routes!'; keys: keyof TReturn & keyof TParentSchema; } : TReturn; type DefinedPathParamWarning = 'Path params cannot be redefined by child routes!'; type ParentParams = AnyPathParams extends TParentParams ? {} : { [Key in keyof TParentParams]?: DefinedPathParamWarning; }; type OnLoadFn = (loaderContext: LoaderContext) => Promise | void; interface LoaderContext { params: TAllParams; search: TFullSearchSchema; signal?: AbortSignal; } type UnloaderFn = (routeMatch: RouteMatch>) => void; type RouteOptions, unknown> = Record, string>, TAllParams extends AnyPathParams = {}> = ({ path: TPath; } | { id: TRouteId; }) & { caseSensitive?: boolean; validateSearch?: SearchSchemaValidator; preSearchFilters?: SearchFilter[]; postSearchFilters?: SearchFilter[]; component?: GetFrameworkGeneric<'Component'>; errorComponent?: GetFrameworkGeneric<'ErrorComponent'>; pendingComponent?: GetFrameworkGeneric<'Component'>; beforeLoad?: (opts: { router: AnyRouter; match: RouteMatch; }) => Promise | void; onLoad?: OnLoadFn; onLoadError?: (err: any) => void; onLoaded?: (matchContext: { params: TAllParams; search: TFullSearchSchema; }) => void | undefined | ((match: { params: TAllParams; search: TFullSearchSchema; }) => void); onTransition?: (match: { params: TAllParams; search: TFullSearchSchema; }) => void; meta?: RouteMeta; } & ({ parseParams?: never; stringifyParams?: never; } | { parseParams: (rawParams: IsAny, string>>) => TParams; stringifyParams: (params: TParams) => Record, string>; }) & (PickUnsafe> extends never ? {} : 'Cannot redefined path params in child routes!'); type SearchFilter = (prev: T) => U; interface RouteConfig { id: TId; routeId: TRouteId; path: NoInfer; fullPath: TFullPath; options: RouteOptions; children?: TKnownChildren; addChildren: IsAny(children: TNewChildren extends AnyRouteConfig[] ? TNewChildren : { error: 'Invalid route detected'; route: TNewChildren; }) => RouteConfig>; createRoute: CreateRouteConfigFn; generate: GenerateFn; } type GenerateFn = , unknown> = Record, string>, TAllParams extends AnyPathParams extends TParams ? Record, string> : NoInfer = AnyPathParams extends TParams ? Record, string> : NoInfer>(options: Omit, TParentParams, TParams, Expand>, 'path'>) => void; type CreateRouteConfigFn = , unknown> = Record, string>, TAllParams extends AnyPathParams extends TParams ? Record, string> : NoInfer = AnyPathParams extends TParams ? Record, string> : NoInfer, TKnownChildren extends RouteConfig[] = RouteConfig[], TResolvedId extends string = string extends TRouteId ? string extends TPath ? string : TPath : TRouteId>(options?: TIsRoot extends true ? Omit, TParentParams, TParams, Expand>, 'path'> & { path?: never; } : RouteOptions, TParentParams, TParams, Expand>, children?: TKnownChildren, isRoot?: boolean, parentId?: string, parentPath?: string) => RouteConfig, TResolvedId, TPath, string extends TPath ? '' : RoutePath>, TParentSearchSchema, TSearchSchema, Expand, TParentParams, TParams, Expand, TKnownChildren>; type RoutePath = T extends RootRouteId ? '/' : TrimPathRight<`${T}`>; type RoutePrefix = string extends TId ? RootRouteId : TId extends string ? `${TPrefix}/${TId}` extends '/' ? '/' : `/${TrimPathLeft<`${TrimPathRight}/${TrimPath}`>}` : never; interface AnyRouteConfig extends RouteConfig { } interface AnyRouteConfigWithChildren extends RouteConfig { } type TrimPath = '' extends T ? '' : TrimPathRight>; type TrimPathLeft = T extends `${RootRouteId}/${infer U}` ? TrimPathLeft : T extends `/${infer U}` ? TrimPathLeft : T; type TrimPathRight = T extends '/' ? '/' : T extends `${infer U}/` ? TrimPathRight : T; declare const createRouteConfig: CreateRouteConfigFn; interface AnyRoute extends Route { } declare class Route { routeInfo: TRouteInfo; id: TRouteInfo['id']; customId: TRouteInfo['customId']; path: TRouteInfo['path']; fullPath: TRouteInfo['fullPath']; getParentRoute: () => undefined | AnyRoute; childRoutes?: AnyRoute[]; options: RouteOptions; originalIndex: number; getRouter: () => Router; constructor(routeConfig: RouteConfig, options: TRouteInfo['options'], originalIndex: number, parent: undefined | Route, router: Router); } interface AnyAllRouteInfo { routeConfig: AnyRouteConfig; routeInfo: AnyRouteInfo; routeInfoById: Record; routeInfoByFullPath: Record; routeIds: any; routePaths: any; fullSearchSchema: Record; allParams: Record; } interface DefaultAllRouteInfo { routeConfig: RouteConfig; routeInfo: RouteInfo; routeInfoById: Record; routeInfoByFullPath: Record; routeIds: string; routePaths: string; fullSearchSchema: AnySearchSchema; allParams: AnyPathParams; } interface AllRouteInfo extends RoutesInfoInner> { } type ParseRouteConfig = TRouteConfig extends AnyRouteConfig ? RouteConfigRoute | ParseRouteChildren : never; type ParseRouteChildren = TRouteConfig extends AnyRouteConfigWithChildren ? unknown extends TChildren ? never : TChildren extends AnyRouteConfig[] ? Values<{ [TId in TChildren[number]['id']]: ParseRouteChild; }> : never : never; type ParseRouteChild = TRouteConfig & { id: TId; } extends AnyRouteConfig ? ParseRouteConfig : never; type RouteConfigRoute = TRouteConfig extends RouteConfig ? string extends TCustomId ? never : RouteInfo : never; interface RoutesInfoInner = RouteInfo, TRouteInfoById = { '/': TRouteInfo; } & { [TInfo in TRouteInfo as TInfo['id']]: TInfo; }, TRouteInfoByFullPath = { '/': TRouteInfo; } & { [TInfo in TRouteInfo as TInfo['fullPath'] extends RootRouteId ? never : string extends TInfo['fullPath'] ? never : TInfo['fullPath']]: TInfo; }> { routeConfig: TRouteConfig; routeInfo: TRouteInfo; routeInfoById: TRouteInfoById; routeInfoByFullPath: TRouteInfoByFullPath; routeIds: keyof TRouteInfoById; routePaths: keyof TRouteInfoByFullPath; fullSearchSchema: Partial>; allParams: Partial>; } interface AnyRouteInfo extends RouteInfo { } interface RouteInfo { id: TId; customId: TCustomId; path: TPath; fullPath: TFullPath; searchSchema: TSearchSchema; fullSearchSchema: TFullSearchSchema; parentParams: TParentParams; params: TParams; allParams: TAllParams; options: RouteOptions; } type RoutesById = { [K in keyof TAllRouteInfo['routeInfoById']]: Route; }; type RouteInfoById = TId extends keyof TAllRouteInfo['routeInfoById'] ? IsAny : never; type RouteInfoByPath = TPath extends keyof TAllRouteInfo['routeInfoByFullPath'] ? IsAny : never; type LinkInfo = { type: 'external'; href: string; } | { type: 'internal'; next: ParsedLocation; handleFocus: (e: any) => void; handleClick: (e: any) => void; handleEnter: (e: any) => void; handleLeave: (e: any) => void; isActive: boolean; disabled?: boolean; }; type CleanPath = T extends `${infer L}//${infer R}` ? CleanPath<`${CleanPath}/${CleanPath}`> : T extends `${infer L}//` ? `${CleanPath}/` : T extends `//${infer L}` ? `/${CleanPath}` : T; type Split = S extends unknown ? string extends S ? string[] : S extends string ? CleanPath extends '' ? [] : TIncludeTrailingSlash extends true ? CleanPath extends `${infer T}/` ? [...Split, '/'] : CleanPath extends `/${infer U}` ? Split : CleanPath extends `${infer T}/${infer U}` ? [...Split, ...Split] : [S] : CleanPath extends `${infer T}/${infer U}` ? [...Split, ...Split] : S extends string ? [S] : never : never : never; type ParsePathParams = Split[number] extends infer U ? U extends `$${infer V}` ? V : never : never; type Join = T extends [] ? '' : T extends [infer L extends string] ? L : T extends [infer L extends string, ...infer Tail extends [...string[]]] ? CleanPath<`${L}/${Join}`> : never; type RelativeToPathAutoComplete> = TTo extends `..${infer _}` ? SplitPaths extends [ ...Split, false>, ...infer TToRest ] ? `${CleanPath, ...(TToRest | (Split, false>['length'] extends 1 ? never : ['../'])) ]>>}` : never : TTo extends `./${infer RestTTo}` ? SplitPaths extends [ ...Split, ...Split, ...infer RestPath ] ? `${TTo}${Join}` : never : (TFrom extends `/` ? never : SplitPaths extends [...Split, ...infer RestPath] ? Join extends { length: 0; } ? never : './' : never) | (TFrom extends `/` ? never : '../') | AllPaths; type NavigateOptions = ToOptions & { replace?: boolean; }; type ToOptions>> = { to?: ToPathOption; hash?: Updater; state?: LocationState; from?: TFrom; } & CheckPath, {}> & SearchParamOptions & PathParamOptions; type SearchParamOptions extends never ? {} : RouteInfoByPath['fullSearchSchema']>>, TToSchema = Partial['fullSearchSchema']> & Omit['fullSearchSchema'], keyof PickRequired['fullSearchSchema']>>, TFromFullSchema = Expand>, TToFullSchema = Expand>> = keyof PickRequired extends never ? { search?: true | SearchReducer; } : { search: SearchReducer; }; type SearchReducer = { [TKey in keyof TTo]: TTo[TKey]; } | ((current: TFrom) => TTo); type PathParamOptions extends never ? {} : RouteInfoByPath['allParams']>>, TToSchema = Partial['allParams']> & Omit['allParams'], keyof PickRequired['allParams']>>, TFromFullParams = Expand>, TToFullParams = Expand>> = keyof PickRequired extends never ? { params?: ParamsReducer; } : { params: ParamsReducer; }; type ParamsReducer = TTo | ((current: TFrom) => TTo); type ToPathOption = TTo | RelativeToPathAutoComplete extends string ? NoInfer : '', NoInfer & string>; type ToIdOption = TTo | RelativeToPathAutoComplete extends string ? NoInfer : '', NoInfer & string>; interface ActiveOptions { exact?: boolean; includeHash?: boolean; } type LinkOptions = NavigateOptions & { target?: HTMLAnchorElement['target']; activeOptions?: ActiveOptions; preload?: false | 'intent'; preloadMaxAge?: number; preloadGcMaxAge?: number; preloadDelay?: number; disabled?: boolean; }; type CheckRelativePath = TTo extends string ? TFrom extends string ? ResolveRelativePath extends TAllRouteInfo['routePaths'] ? {} : { Error: `${TFrom} + ${TTo} resolves to ${ResolveRelativePath}, which is not a valid route path.`; 'Valid Route Paths': TAllRouteInfo['routePaths']; } : {} : {}; type CheckPath = Exclude extends never ? TPass : CheckPathError>; type CheckPathError = Expand<{ Error: `${TInvalids extends string ? TInvalids : never} is not a valid route path.`; 'Valid Route Paths': TAllRouteInfo['routePaths']; }>; type CheckId = Exclude extends never ? TPass : CheckIdError>; type CheckIdError = Expand<{ Error: `${TInvalids extends string ? TInvalids : never} is not a valid route ID.`; 'Valid Route IDs': TAllRouteInfo['routeIds']; }>; type ResolveRelativePath = TFrom extends string ? TTo extends string ? TTo extends '.' ? TFrom : TTo extends `./` ? Join<[TFrom, '/']> : TTo extends `./${infer TRest}` ? ResolveRelativePath : TTo extends `/${infer TRest}` ? TTo : Split extends ['..', ...infer ToRest] ? Split extends [...infer FromRest, infer FromTail] ? ToRest extends ['/'] ? Join<[...FromRest, '/']> : ResolveRelativePath, Join> : never : Split extends ['.', ...infer ToRest] ? ToRest extends ['/'] ? Join<[TFrom, '/']> : ResolveRelativePath> : CleanPath, ...Split]>> : never : never; type ValidFromPath = undefined | (string extends TAllRouteInfo['routePaths'] ? string : TAllRouteInfo['routePaths']); interface Segment { type: 'pathname' | 'param' | 'wildcard'; value: string; } declare function joinPaths(paths: (string | undefined)[]): string; declare function cleanPath(path: string): string; declare function trimPathLeft(path: string): string; declare function trimPathRight(path: string): string; declare function trimPath(path: string): string; declare function resolvePath(basepath: string, base: string, to: string): string; declare function parsePathname(pathname?: string): Segment[]; declare function interpolatePath(path: string | undefined, params: any, leaveWildcard?: boolean): string; declare function matchPathname(basepath: string, currentPathname: string, matchLocation: Pick): AnyPathParams | undefined; declare function matchByPath(basepath: string, from: string, matchLocation: Pick): Record | undefined; declare function encode(obj: any, pfx?: string): string; declare function decode(str: any): {}; declare const defaultParseSearch: (searchStr: string) => AnySearchSchema; declare const defaultStringifySearch: (search: Record) => string; declare function parseSearchWith(parser: (str: string) => any): (searchStr: string) => AnySearchSchema; declare function stringifySearchWith(stringify: (search: any) => string): (search: Record) => string; export { ActiveOptions, AllRouteInfo, AnyAllRouteInfo, AnyLoaderData, AnyPathParams, AnyRoute, AnyRouteConfig, AnyRouteConfigWithChildren, AnyRouteInfo, AnyRouter, AnySearchSchema, BuildNextOptions, CheckId, CheckIdError, CheckPath, CheckPathError, CheckRelativePath, DeepAwaited, DefaultAllRouteInfo, DefinedPathParamWarning, DehydratedRouter, DehydratedRouterState, Expand, FilterRoutesFn, FrameworkGenerics, FromLocation, GetFrameworkGeneric, IsAny, IsAnyBoolean, IsKnown, LinkInfo, LinkOptions, ListenerFn, LoaderContext, LoaderState, LocationState, MatchCache, MatchCacheEntry, MatchLocation, MatchRouteOptions, NavigateOptions, NoInfer, OnLoadFn, ParentParams, ParsePathParams, ParseRouteConfig, ParsedLocation, ParsedPath, PathParamMask, PathParamOptions, PickAsPartial, PickAsRequired, PickExclude, PickExtra, PickExtract, PickRequired, PickUnsafe, RegisterRouter, RegisteredAllRouteInfo, RegisteredRouter, RelativeToPathAutoComplete, ResolveRelativePath, RootRouteId, Route, RouteConfig, RouteConfigRoute, RouteInfo, RouteInfoById, RouteInfoByPath, RouteMatch, RouteMatchStore, RouteMeta, RouteOptions, Router, RouterContext, RouterHistory, RouterLocation, RouterOptions, RouterStore, RoutesById, RoutesInfoInner, SearchFilter, SearchParamOptions, SearchParser, SearchSchemaValidator, SearchSchemaValidatorFn, SearchSchemaValidatorObj, SearchSerializer, Segment, Split, Timeout, ToIdOption, ToOptions, ToPathOption, UnionToIntersection, UnloaderFn, Updater, ValidFromPath, ValueKeys, Values, cleanPath, createBrowserHistory, createHashHistory, createMemoryHistory, createRouteConfig, decode, defaultFetchServerDataFn, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, isPlainObject, joinPaths, last, matchByPath, matchPathname, parsePathname, parseSearchWith, pick, replaceEqualDeep, resolvePath, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, warning };