@tanstack/router-core 0.0.1-beta.9 → 1.20.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/cjs/Matches.cjs +13 -0
  4. package/dist/cjs/Matches.cjs.map +1 -0
  5. package/dist/cjs/Matches.d.cts +109 -0
  6. package/dist/cjs/RouterProvider.d.cts +26 -0
  7. package/dist/cjs/defer.cjs +25 -0
  8. package/dist/cjs/defer.cjs.map +1 -0
  9. package/dist/cjs/defer.d.cts +20 -0
  10. package/dist/cjs/fileRoute.d.cts +23 -0
  11. package/dist/cjs/history.d.cts +8 -0
  12. package/dist/cjs/index.cjs +80 -0
  13. package/dist/cjs/index.cjs.map +1 -0
  14. package/dist/cjs/index.d.cts +41 -0
  15. package/dist/cjs/link.cjs +5 -0
  16. package/dist/cjs/link.cjs.map +1 -0
  17. package/dist/cjs/link.d.cts +200 -0
  18. package/dist/cjs/location.d.cts +12 -0
  19. package/dist/cjs/manifest.d.cts +24 -0
  20. package/dist/cjs/not-found.cjs +13 -0
  21. package/dist/cjs/not-found.cjs.map +1 -0
  22. package/dist/cjs/not-found.d.cts +20 -0
  23. package/dist/cjs/path.cjs +412 -0
  24. package/dist/cjs/path.cjs.map +1 -0
  25. package/dist/cjs/path.d.cts +56 -0
  26. package/dist/cjs/qss.cjs +38 -0
  27. package/dist/cjs/qss.cjs.map +1 -0
  28. package/dist/cjs/qss.d.cts +22 -0
  29. package/dist/cjs/redirect.cjs +34 -0
  30. package/dist/cjs/redirect.cjs.map +1 -0
  31. package/dist/cjs/redirect.d.cts +38 -0
  32. package/dist/cjs/root.cjs +5 -0
  33. package/dist/cjs/root.cjs.map +1 -0
  34. package/dist/cjs/root.d.cts +2 -0
  35. package/dist/cjs/route.cjs +119 -0
  36. package/dist/cjs/route.cjs.map +1 -0
  37. package/dist/cjs/route.d.cts +422 -0
  38. package/dist/cjs/routeInfo.d.cts +54 -0
  39. package/dist/cjs/router.cjs +1800 -0
  40. package/dist/cjs/router.cjs.map +1 -0
  41. package/dist/cjs/router.d.cts +630 -0
  42. package/dist/cjs/scroll-restoration.cjs +196 -0
  43. package/dist/cjs/scroll-restoration.cjs.map +1 -0
  44. package/dist/cjs/scroll-restoration.d.cts +38 -0
  45. package/dist/cjs/searchMiddleware.cjs +42 -0
  46. package/dist/cjs/searchMiddleware.cjs.map +1 -0
  47. package/dist/cjs/searchMiddleware.d.cts +5 -0
  48. package/dist/cjs/searchParams.cjs +61 -0
  49. package/dist/cjs/searchParams.cjs.map +1 -0
  50. package/dist/cjs/searchParams.d.cts +7 -0
  51. package/dist/cjs/serializer.d.cts +22 -0
  52. package/dist/cjs/structuralSharing.d.cts +4 -0
  53. package/dist/cjs/typePrimitives.d.cts +65 -0
  54. package/dist/cjs/useLoaderData.d.cts +5 -0
  55. package/dist/cjs/useLoaderDeps.d.cts +5 -0
  56. package/dist/cjs/useNavigate.d.cts +3 -0
  57. package/dist/cjs/useParams.d.cts +5 -0
  58. package/dist/cjs/useRouteContext.d.cts +9 -0
  59. package/dist/cjs/useSearch.d.cts +5 -0
  60. package/dist/cjs/utils.cjs +160 -0
  61. package/dist/cjs/utils.cjs.map +1 -0
  62. package/dist/cjs/utils.d.cts +105 -0
  63. package/dist/cjs/validators.d.cts +51 -0
  64. package/dist/esm/Matches.d.ts +109 -0
  65. package/dist/esm/Matches.js +13 -0
  66. package/dist/esm/Matches.js.map +1 -0
  67. package/dist/esm/RouterProvider.d.ts +26 -0
  68. package/dist/esm/defer.d.ts +20 -0
  69. package/dist/esm/defer.js +25 -0
  70. package/dist/esm/defer.js.map +1 -0
  71. package/dist/esm/fileRoute.d.ts +23 -0
  72. package/dist/esm/history.d.ts +8 -0
  73. package/dist/esm/index.d.ts +41 -0
  74. package/dist/esm/index.js +80 -0
  75. package/dist/esm/index.js.map +1 -0
  76. package/dist/esm/link.d.ts +200 -0
  77. package/dist/esm/link.js +5 -0
  78. package/dist/esm/link.js.map +1 -0
  79. package/dist/esm/location.d.ts +12 -0
  80. package/dist/esm/manifest.d.ts +24 -0
  81. package/dist/esm/not-found.d.ts +20 -0
  82. package/dist/esm/not-found.js +13 -0
  83. package/dist/esm/not-found.js.map +1 -0
  84. package/dist/esm/path.d.ts +56 -0
  85. package/dist/esm/path.js +412 -0
  86. package/dist/esm/path.js.map +1 -0
  87. package/dist/esm/qss.d.ts +22 -0
  88. package/dist/esm/qss.js +38 -0
  89. package/dist/esm/qss.js.map +1 -0
  90. package/dist/esm/redirect.d.ts +38 -0
  91. package/dist/esm/redirect.js +34 -0
  92. package/dist/esm/redirect.js.map +1 -0
  93. package/dist/esm/root.d.ts +2 -0
  94. package/dist/esm/root.js +5 -0
  95. package/dist/esm/root.js.map +1 -0
  96. package/dist/esm/route.d.ts +422 -0
  97. package/dist/esm/route.js +119 -0
  98. package/dist/esm/route.js.map +1 -0
  99. package/dist/esm/routeInfo.d.ts +54 -0
  100. package/dist/esm/router.d.ts +630 -0
  101. package/dist/esm/router.js +1800 -0
  102. package/dist/esm/router.js.map +1 -0
  103. package/dist/esm/scroll-restoration.d.ts +38 -0
  104. package/dist/esm/scroll-restoration.js +196 -0
  105. package/dist/esm/scroll-restoration.js.map +1 -0
  106. package/dist/esm/searchMiddleware.d.ts +5 -0
  107. package/dist/esm/searchMiddleware.js +42 -0
  108. package/dist/esm/searchMiddleware.js.map +1 -0
  109. package/dist/esm/searchParams.d.ts +7 -0
  110. package/dist/esm/searchParams.js +61 -0
  111. package/dist/esm/searchParams.js.map +1 -0
  112. package/dist/esm/serializer.d.ts +22 -0
  113. package/dist/esm/structuralSharing.d.ts +4 -0
  114. package/dist/esm/typePrimitives.d.ts +65 -0
  115. package/dist/esm/useLoaderData.d.ts +5 -0
  116. package/dist/esm/useLoaderDeps.d.ts +5 -0
  117. package/dist/esm/useNavigate.d.ts +3 -0
  118. package/dist/esm/useParams.d.ts +5 -0
  119. package/dist/esm/useRouteContext.d.ts +9 -0
  120. package/dist/esm/useSearch.d.ts +5 -0
  121. package/dist/esm/utils.d.ts +105 -0
  122. package/dist/esm/utils.js +160 -0
  123. package/dist/esm/utils.js.map +1 -0
  124. package/dist/esm/validators.d.ts +51 -0
  125. package/package.json +36 -32
  126. package/src/Matches.ts +239 -0
  127. package/src/RouterProvider.ts +50 -0
  128. package/src/defer.ts +52 -0
  129. package/src/fileRoute.ts +140 -0
  130. package/src/history.ts +9 -0
  131. package/src/index.ts +421 -19
  132. package/src/link.ts +580 -286
  133. package/src/location.ts +13 -0
  134. package/src/manifest.ts +32 -0
  135. package/src/not-found.ts +29 -0
  136. package/src/path.ts +425 -49
  137. package/src/qss.ts +70 -41
  138. package/src/redirect.ts +100 -0
  139. package/src/root.ts +2 -0
  140. package/src/route.ts +1682 -218
  141. package/src/routeInfo.ts +224 -217
  142. package/src/router.ts +3100 -1073
  143. package/src/scroll-restoration.ts +340 -0
  144. package/src/searchMiddleware.ts +54 -0
  145. package/src/searchParams.ts +43 -20
  146. package/src/serializer.ts +32 -0
  147. package/src/structuralSharing.ts +7 -0
  148. package/src/typePrimitives.ts +181 -0
  149. package/src/useLoaderData.ts +20 -0
  150. package/src/useLoaderDeps.ts +13 -0
  151. package/src/useNavigate.ts +13 -0
  152. package/src/useParams.ts +20 -0
  153. package/src/useRouteContext.ts +39 -0
  154. package/src/useSearch.ts +20 -0
  155. package/src/utils.ts +369 -75
  156. package/src/validators.ts +121 -0
  157. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -33
  158. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
  159. package/build/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -33
  160. package/build/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  161. package/build/cjs/node_modules/history/index.js +0 -815
  162. package/build/cjs/node_modules/history/index.js.map +0 -1
  163. package/build/cjs/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +0 -30
  164. package/build/cjs/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +0 -1
  165. package/build/cjs/packages/router-core/src/index.js +0 -58
  166. package/build/cjs/packages/router-core/src/index.js.map +0 -1
  167. package/build/cjs/packages/router-core/src/path.js +0 -222
  168. package/build/cjs/packages/router-core/src/path.js.map +0 -1
  169. package/build/cjs/packages/router-core/src/qss.js +0 -71
  170. package/build/cjs/packages/router-core/src/qss.js.map +0 -1
  171. package/build/cjs/packages/router-core/src/route.js +0 -150
  172. package/build/cjs/packages/router-core/src/route.js.map +0 -1
  173. package/build/cjs/packages/router-core/src/routeConfig.js +0 -69
  174. package/build/cjs/packages/router-core/src/routeConfig.js.map +0 -1
  175. package/build/cjs/packages/router-core/src/routeMatch.js +0 -266
  176. package/build/cjs/packages/router-core/src/routeMatch.js.map +0 -1
  177. package/build/cjs/packages/router-core/src/router.js +0 -822
  178. package/build/cjs/packages/router-core/src/router.js.map +0 -1
  179. package/build/cjs/packages/router-core/src/searchParams.js +0 -70
  180. package/build/cjs/packages/router-core/src/searchParams.js.map +0 -1
  181. package/build/cjs/packages/router-core/src/utils.js +0 -125
  182. package/build/cjs/packages/router-core/src/utils.js.map +0 -1
  183. package/build/esm/index.js +0 -2481
  184. package/build/esm/index.js.map +0 -1
  185. package/build/stats-html.html +0 -4034
  186. package/build/stats-react.json +0 -493
  187. package/build/types/index.d.ts +0 -618
  188. package/build/umd/index.development.js +0 -2514
  189. package/build/umd/index.development.js.map +0 -1
  190. package/build/umd/index.production.js +0 -12
  191. package/build/umd/index.production.js.map +0 -1
  192. package/src/frameworks.ts +0 -12
  193. package/src/routeConfig.ts +0 -495
  194. package/src/routeMatch.ts +0 -374
package/src/index.ts CHANGED
@@ -1,20 +1,422 @@
1
+ export { TSR_DEFERRED_PROMISE, defer } from './defer'
2
+ export type { DeferredPromiseState, DeferredPromise } from './defer'
3
+ export { preloadWarning } from './link'
4
+ export type {
5
+ IsRequiredParams,
6
+ ParsePathParams,
7
+ AddTrailingSlash,
8
+ RemoveTrailingSlashes,
9
+ AddLeadingSlash,
10
+ RemoveLeadingSlashes,
11
+ ActiveOptions,
12
+ LinkOptionsProps,
13
+ ResolveCurrentPath,
14
+ ResolveParentPath,
15
+ ResolveRelativePath,
16
+ LinkCurrentTargetElement,
17
+ FindDescendantToPaths,
18
+ InferDescendantToPaths,
19
+ RelativeToPath,
20
+ RelativeToParentPath,
21
+ RelativeToCurrentPath,
22
+ AbsoluteToPath,
23
+ RelativeToPathAutoComplete,
24
+ NavigateOptions,
25
+ ToOptions,
26
+ ToMaskOptions,
27
+ ToSubOptions,
28
+ ResolveRoute,
29
+ SearchParamOptions,
30
+ PathParamOptions,
31
+ ToPathOption,
32
+ LinkOptions,
33
+ MakeOptionalPathParams,
34
+ FromPathOption,
35
+ MakeOptionalSearchParams,
36
+ MaskOptions,
37
+ ToSubOptionsProps,
38
+ RequiredToOptions,
39
+ } from './link'
40
+
41
+ export type {
42
+ RouteToPath,
43
+ TrailingSlashOptionByRouter,
44
+ ParseRoute,
45
+ CodeRouteToPath,
46
+ RouteIds,
47
+ FullSearchSchema,
48
+ FullSearchSchemaInput,
49
+ AllParams,
50
+ RouteById,
51
+ AllContext,
52
+ RoutePaths,
53
+ RoutesById,
54
+ RoutesByPath,
55
+ AllLoaderData,
56
+ RouteByPath,
57
+ } from './routeInfo'
58
+
59
+ export type {
60
+ InferFileRouteTypes,
61
+ FileRouteTypes,
62
+ FileRoutesByPath,
63
+ CreateFileRoute,
64
+ LazyRoute,
65
+ LazyRouteOptions,
66
+ CreateLazyFileRoute,
67
+ } from './fileRoute'
68
+
69
+ export type {
70
+ StartSerializer,
71
+ Serializable,
72
+ SerializerParse,
73
+ SerializerParseBy,
74
+ SerializerStringify,
75
+ SerializerStringifyBy,
76
+ SerializerExtensions,
77
+ } from './serializer'
78
+
79
+ export type { ParsedLocation } from './location'
80
+ export type { Manifest, RouterManagedTag } from './manifest'
81
+ export { isMatch } from './Matches'
82
+ export type {
83
+ AnyMatchAndValue,
84
+ FindValueByIndex,
85
+ FindValueByKey,
86
+ CreateMatchAndValue,
87
+ NextMatchAndValue,
88
+ IsMatchKeyOf,
89
+ IsMatchPath,
90
+ IsMatchResult,
91
+ IsMatchParse,
92
+ IsMatch,
93
+ RouteMatch,
94
+ RouteMatchExtensions,
95
+ MakeRouteMatchUnion,
96
+ MakeRouteMatch,
97
+ AnyRouteMatch,
98
+ MakeRouteMatchFromRoute,
99
+ MatchRouteOptions,
100
+ } from './Matches'
1
101
  export {
2
- createHashHistory,
3
- createBrowserHistory,
4
- createMemoryHistory,
5
- } from 'history'
6
-
7
- export { default as invariant } from 'tiny-invariant'
8
-
9
- export * from './frameworks'
10
- export * from './index'
11
- export * from './link'
12
- export * from './path'
13
- export * from './qss'
14
- export * from './route'
15
- export * from './routeConfig'
16
- export * from './routeInfo'
17
- export * from './routeMatch'
18
- export * from './router'
19
- export * from './searchParams'
20
- export * from './utils'
102
+ joinPaths,
103
+ cleanPath,
104
+ trimPathLeft,
105
+ trimPathRight,
106
+ trimPath,
107
+ removeTrailingSlash,
108
+ exactPathTest,
109
+ resolvePath,
110
+ parsePathname,
111
+ interpolatePath,
112
+ matchPathname,
113
+ removeBasepath,
114
+ matchByPath,
115
+ } from './path'
116
+ export type { Segment } from './path'
117
+ export { encode, decode } from './qss'
118
+ export { rootRouteId } from './root'
119
+ export type { RootRouteId } from './root'
120
+
121
+ export { BaseRoute, BaseRouteApi, BaseRootRoute } from './route'
122
+ export type {
123
+ AnyPathParams,
124
+ SearchSchemaInput,
125
+ AnyContext,
126
+ RouteContext,
127
+ PreloadableObj,
128
+ RoutePathOptions,
129
+ StaticDataRouteOption,
130
+ RoutePathOptionsIntersection,
131
+ SearchFilter,
132
+ SearchMiddlewareContext,
133
+ SearchMiddleware,
134
+ ResolveId,
135
+ InferFullSearchSchema,
136
+ InferFullSearchSchemaInput,
137
+ InferAllParams,
138
+ InferAllContext,
139
+ MetaDescriptor,
140
+ RouteLinkEntry,
141
+ SearchValidator,
142
+ AnySearchValidator,
143
+ DefaultSearchValidator,
144
+ ErrorRouteProps,
145
+ ErrorComponentProps,
146
+ NotFoundRouteProps,
147
+ ParseSplatParams,
148
+ SplatParams,
149
+ ResolveParams,
150
+ ParseParamsFn,
151
+ StringifyParamsFn,
152
+ ParamsOptions,
153
+ UpdatableStaticRouteOption,
154
+ ContextReturnType,
155
+ ContextAsyncReturnType,
156
+ ResolveRouteContext,
157
+ ResolveLoaderData,
158
+ RoutePrefix,
159
+ TrimPath,
160
+ TrimPathLeft,
161
+ TrimPathRight,
162
+ ResolveSearchSchemaFnInput,
163
+ ResolveSearchSchemaInput,
164
+ ResolveSearchSchemaFn,
165
+ ResolveSearchSchema,
166
+ ResolveFullSearchSchema,
167
+ ResolveFullSearchSchemaInput,
168
+ ResolveAllContext,
169
+ BeforeLoadContextParameter,
170
+ RouteContextParameter,
171
+ ResolveAllParamsFromParent,
172
+ AnyRoute,
173
+ Route,
174
+ RouteTypes,
175
+ FullSearchSchemaOption,
176
+ RemountDepsOptions,
177
+ MakeRemountDepsOptionsUnion,
178
+ ResolveFullPath,
179
+ AnyRouteWithContext,
180
+ RouteOptions,
181
+ FileBaseRouteOptions,
182
+ BaseRouteOptions,
183
+ UpdatableRouteOptions,
184
+ RouteLoaderFn,
185
+ LoaderFnContext,
186
+ RouteContextFn,
187
+ BeforeLoadFn,
188
+ ContextOptions,
189
+ RouteContextOptions,
190
+ BeforeLoadContextOptions,
191
+ RootRouteOptions,
192
+ UpdatableRouteOptionsExtensions,
193
+ RouteConstraints,
194
+ RouteTypesById,
195
+ RouteMask,
196
+ RouteExtensions,
197
+ RouteLazyFn,
198
+ RouteAddChildrenFn,
199
+ RouteAddFileChildrenFn,
200
+ RouteAddFileTypesFn,
201
+ } from './route'
202
+
203
+ export {
204
+ defaultSerializeError,
205
+ getLocationChangeInfo,
206
+ RouterCore,
207
+ componentTypes,
208
+ lazyFn,
209
+ SearchParamError,
210
+ PathParamError,
211
+ getInitialRouterState,
212
+ processRouteTree,
213
+ getMatchedRoutes,
214
+ } from './router'
215
+ export type {
216
+ ViewTransitionOptions,
217
+ ExtractedBaseEntry,
218
+ ExtractedStream,
219
+ ExtractedPromise,
220
+ ExtractedEntry,
221
+ StreamState,
222
+ TrailingSlashOption,
223
+ Register,
224
+ AnyRouter,
225
+ AnyRouterWithContext,
226
+ RegisteredRouter,
227
+ RouterState,
228
+ BuildNextOptions,
229
+ RouterListener,
230
+ RouterEvent,
231
+ ListenerFn,
232
+ RouterEvents,
233
+ MatchRoutesOpts,
234
+ RouterOptionsExtensions,
235
+ DefaultRemountDepsFn,
236
+ PreloadRouteFn,
237
+ MatchRouteFn,
238
+ RouterContextOptions,
239
+ RouterOptions,
240
+ RouterConstructorOptions,
241
+ UpdateFn,
242
+ ParseLocationFn,
243
+ InvalidateFn,
244
+ ControllablePromise,
245
+ InjectedHtmlEntry,
246
+ RouterErrorSerializer,
247
+ MatchedRoutesResult,
248
+ EmitFn,
249
+ LoadFn,
250
+ GetMatchFn,
251
+ SubscribeFn,
252
+ UpdateMatchFn,
253
+ CommitLocationFn,
254
+ GetMatchRoutesFn,
255
+ MatchRoutesFn,
256
+ StartTransitionFn,
257
+ LoadRouteChunkFn,
258
+ ServerSrr,
259
+ ClearCacheFn,
260
+ CreateRouterFn,
261
+ } from './router'
262
+
263
+ export type {
264
+ MatchLocation,
265
+ CommitLocationOptions,
266
+ NavigateFn,
267
+ BuildLocationFn,
268
+ } from './RouterProvider'
269
+
270
+ export { retainSearchParams, stripSearchParams } from './searchMiddleware'
271
+
272
+ export {
273
+ defaultParseSearch,
274
+ defaultStringifySearch,
275
+ parseSearchWith,
276
+ stringifySearchWith,
277
+ } from './searchParams'
278
+ export type { SearchSerializer, SearchParser } from './searchParams'
279
+
280
+ export type { OptionalStructuralSharing } from './structuralSharing'
281
+
282
+ export {
283
+ last,
284
+ functionalUpdate,
285
+ pick,
286
+ replaceEqualDeep,
287
+ isPlainObject,
288
+ isPlainArray,
289
+ deepEqual,
290
+ escapeJSON,
291
+ shallow,
292
+ createControlledPromise,
293
+ } from './utils'
294
+ export type {
295
+ NoInfer,
296
+ IsAny,
297
+ PickAsRequired,
298
+ PickRequired,
299
+ PickOptional,
300
+ WithoutEmpty,
301
+ Expand,
302
+ DeepPartial,
303
+ MakeDifferenceOptional,
304
+ IsUnion,
305
+ IsNonEmptyObject,
306
+ Assign,
307
+ IntersectAssign,
308
+ Timeout,
309
+ Updater,
310
+ NonNullableUpdater,
311
+ StringLiteral,
312
+ ThrowOrOptional,
313
+ ThrowConstraint,
314
+ ControlledPromise,
315
+ ExtractObjects,
316
+ PartialMergeAllObject,
317
+ MergeAllPrimitive,
318
+ ExtractPrimitives,
319
+ PartialMergeAll,
320
+ Constrain,
321
+ ConstrainLiteral,
322
+ UnionToIntersection,
323
+ MergeAllObjects,
324
+ MergeAll,
325
+ ValidateJSON,
326
+ StrictOrFrom,
327
+ LooseReturnType,
328
+ LooseAsyncReturnType,
329
+ } from './utils'
330
+
331
+ export type {
332
+ StandardSchemaValidatorProps,
333
+ StandardSchemaValidator,
334
+ AnyStandardSchemaValidator,
335
+ StandardSchemaValidatorTypes,
336
+ AnyStandardSchemaValidateSuccess,
337
+ AnyStandardSchemaValidateFailure,
338
+ AnyStandardSchemaValidateIssue,
339
+ AnyStandardSchemaValidateInput,
340
+ AnyStandardSchemaValidate,
341
+ ValidatorObj,
342
+ AnyValidatorObj,
343
+ ValidatorAdapter,
344
+ AnyValidatorAdapter,
345
+ AnyValidatorFn,
346
+ ValidatorFn,
347
+ Validator,
348
+ AnyValidator,
349
+ AnySchema,
350
+ DefaultValidator,
351
+ ResolveSearchValidatorInputFn,
352
+ ResolveSearchValidatorInput,
353
+ ResolveValidatorInputFn,
354
+ ResolveValidatorInput,
355
+ ResolveValidatorOutputFn,
356
+ ResolveValidatorOutput,
357
+ } from './validators'
358
+
359
+ export type {
360
+ UseRouteContextBaseOptions,
361
+ UseRouteContextOptions,
362
+ UseRouteContextResult,
363
+ } from './useRouteContext'
364
+
365
+ export type { UseSearchResult, ResolveUseSearch } from './useSearch'
366
+
367
+ export type { UseParamsResult, ResolveUseParams } from './useParams'
368
+
369
+ export type { UseNavigateResult } from './useNavigate'
370
+
371
+ export type { UseLoaderDepsResult, ResolveUseLoaderDeps } from './useLoaderDeps'
372
+
373
+ export type { UseLoaderDataResult, ResolveUseLoaderData } from './useLoaderData'
374
+
375
+ export type { Redirect, ResolvedRedirect, AnyRedirect } from './redirect'
376
+
377
+ export {
378
+ redirect,
379
+ isRedirect,
380
+ isResolvedRedirect,
381
+ tsrRedirectHeaderKey,
382
+ parseRedirect,
383
+ } from './redirect'
384
+
385
+ export type { NotFoundError } from './not-found'
386
+ export { isNotFound, notFound } from './not-found'
387
+
388
+ export {
389
+ defaultGetScrollRestorationKey,
390
+ restoreScroll,
391
+ storageKey,
392
+ getCssSelector,
393
+ scrollRestorationCache,
394
+ setupScrollRestoration,
395
+ handleHashScroll,
396
+ } from './scroll-restoration'
397
+
398
+ export type {
399
+ ScrollRestorationOptions,
400
+ ScrollRestorationEntry,
401
+ } from './scroll-restoration'
402
+
403
+ export type {
404
+ ValidateFromPath,
405
+ ValidateToPath,
406
+ ValidateSearch,
407
+ ValidateParams,
408
+ InferFrom,
409
+ InferTo,
410
+ InferMaskTo,
411
+ InferMaskFrom,
412
+ ValidateNavigateOptions,
413
+ ValidateNavigateOptionsArray,
414
+ ValidateRedirectOptions,
415
+ ValidateRedirectOptionsArray,
416
+ ValidateId,
417
+ InferStrict,
418
+ InferShouldThrow,
419
+ InferSelected,
420
+ ValidateUseSearchResult,
421
+ ValidateUseParamsResult,
422
+ } from './typePrimitives'