@real-router/angular 0.24.0 → 0.24.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.
@@ -1,14 +1,10 @@
1
- import * as _angular_core from '@angular/core';
2
- import { Signal, InjectionToken, EnvironmentProviders, TemplateRef, OnInit } from '@angular/core';
3
- import * as _real_router_core from '@real-router/core';
4
- import { Router, RouterError, Params, Navigator, DefaultDependencies, PluginFactory, State, SearchParams, NavigationTarget, NavigationOptions } from '@real-router/core';
5
- export { Navigator } from '@real-router/core';
6
- import { RouteSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
7
- export { RouteSnapshot, RouterErrorSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
8
- import { RouteUtils } from '@real-router/route-utils';
9
-
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, InjectionToken, OnInit, Signal, TemplateRef } from "@angular/core";
3
+ import { DefaultDependencies, NavigationOptions, NavigationTarget, Navigator, Navigator as Navigator$1, Params, PluginFactory, Router, RouterError, SearchParams, State } from "@real-router/core";
4
+ import { RouteSnapshot, RouteSnapshot as RouteSnapshot$1, RouterErrorSnapshot, RouterTransitionSnapshot, RouterTransitionSnapshot as RouterTransitionSnapshot$1 } from "@real-router/sources";
5
+ import { RouteUtils } from "@real-router/route-utils";
10
6
  interface DirectionTracker {
11
- destroy: () => void;
7
+ destroy: () => void;
12
8
  }
13
9
  /**
14
10
  * Track navigation direction (forward / back) and write it to
@@ -31,36 +27,59 @@ interface DirectionTracker {
31
27
  * Returns `{ destroy }` to clean up the listener and clear the dataset
32
28
  * attribute.
33
29
  */
34
- declare function createDirectionTracker(router: Router): DirectionTracker;
35
-
30
+ export declare function createDirectionTracker(router: Router): DirectionTracker;
31
+ interface RouteAnnouncerOptions {
32
+ prefix?: string;
33
+ getAnnouncementText?: (route: State) => string;
34
+ }
35
+ declare function createRouteAnnouncer(router: Router, options?: RouteAnnouncerOptions): {
36
+ destroy: () => void;
37
+ };
36
38
  type ScrollRestorationMode = "restore" | "top" | "native";
37
39
  interface ScrollRestorationOptions {
38
- mode?: ScrollRestorationMode | undefined;
39
- anchorScrolling?: boolean | undefined;
40
- scrollContainer?: (() => HTMLElement | null) | undefined;
41
- /**
42
- * Scroll behavior passed to `scrollTo({ behavior })` and
43
- * `scrollIntoView({ behavior })`.
44
- *
45
- * - `"auto"` (default) — browser-defined, usually instant.
46
- * - `"instant"` — explicit instant jump (no animation).
47
- * - `"smooth"` — animated transition. Note: smooth restore on back/traverse
48
- * can feel disorienting if the user expects to land at the saved position
49
- * immediately. Recommended for `mode: "top"` or anchor scroll only.
50
- *
51
- * See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior).
52
- */
53
- behavior?: ScrollBehavior | undefined;
54
- /**
55
- * sessionStorage key for persisting saved scroll positions. Default:
56
- * `"real-router:scroll"`. Override only when multiple independent
57
- * `RouterProvider` instances share the same document and you need to
58
- * isolate their scroll stores (e.g. micro-frontends, embedded widgets,
59
- * or testing). For a single app with one provider the default is fine.
60
- */
61
- storageKey?: string | undefined;
40
+ mode?: ScrollRestorationMode | undefined;
41
+ anchorScrolling?: boolean | undefined;
42
+ scrollContainer?: (() => HTMLElement | null) | undefined;
43
+ /**
44
+ * Scroll behavior passed to `scrollTo({ behavior })` and
45
+ * `scrollIntoView({ behavior })`.
46
+ *
47
+ * - `"auto"` (default) — browser-defined, usually instant.
48
+ * - `"instant"` — explicit instant jump (no animation).
49
+ * - `"smooth"` — animated transition. Note: smooth restore on back/traverse
50
+ * can feel disorienting if the user expects to land at the saved position
51
+ * immediately. Recommended for `mode: "top"` or anchor scroll only.
52
+ *
53
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior).
54
+ */
55
+ behavior?: ScrollBehavior | undefined;
56
+ /**
57
+ * sessionStorage key for persisting saved scroll positions. Default:
58
+ * `"real-router:scroll"`. Override only when multiple independent
59
+ * `RouterProvider` instances share the same document and you need to
60
+ * isolate their scroll stores (e.g. micro-frontends, embedded widgets,
61
+ * or testing). For a single app with one provider the default is fine.
62
+ */
63
+ storageKey?: string | undefined;
62
64
  }
63
-
65
+ declare function createScrollRestoration(router: Router, options?: ScrollRestorationOptions): {
66
+ destroy: () => void;
67
+ };
68
+ /**
69
+ * Internal cache-key builder for scroll-position storage.
70
+ *
71
+ * **Exported for testing only — not part of the public API** (intentionally
72
+ * excluded from `index.ts` barrel). Adapter property tests import it rather
73
+ * than replicating it (§8b H20 / audit-2026-05-16 #S3): a replica drifts
74
+ * silently the moment the key changes. A change to the key format loses saved
75
+ * positions across an upgrade, so the test set is the contract.
76
+ *
77
+ * ## Not memoized
78
+ *
79
+ * The key is a string property read, which is cheaper than the `WeakMap`
80
+ * lookup any cache would need — so there is nothing here to cache.
81
+ */
82
+ declare function keyOf(state: State): string;
64
83
  /**
65
84
  * Router-coordinated scroll spy (#575).
66
85
  *
@@ -100,39 +119,176 @@ interface ScrollRestorationOptions {
100
119
  * @returns A `ScrollSpy` handle whose `destroy()` is idempotent.
101
120
  */
102
121
  interface ScrollSpyOptions {
103
- /**
104
- * CSS selector for anchor candidates. Empty string `""` or `undefined`
105
- * disables the spy (returns a NOOP handle). Common values:
106
- * `"[id]"`, `"[id]:is(h1,h2,h3)"`, `"section[id]"`.
107
- */
108
- selector: string;
109
- /**
110
- * `IntersectionObserver` `rootMargin`. Default
111
- * `"-20% 0px -60% 0px"` — an anchor is considered "active" once it crosses
112
- * into the top 20 % of the viewport (or scroll container).
113
- */
114
- rootMargin?: string | undefined;
115
- /**
116
- * Lazy getter for the scrollable container. Consulted at creation and
117
- * re-consulted on every reconcile (DOM mutation), so a container that
118
- * MOUNTS or CHANGES after the spy is created is honoured: the
119
- * `IntersectionObserver` root and `MutationObserver` target — both immutable
120
- * once constructed — are rebuilt to match (#780). `null` (or a missing
121
- * getter) falls back to the window viewport (`root: null` on the
122
- * `IntersectionObserver`).
123
- */
124
- scrollContainer?: (() => HTMLElement | null) | undefined;
122
+ /**
123
+ * CSS selector for anchor candidates. Empty string `""` or `undefined`
124
+ * disables the spy (returns a NOOP handle). Common values:
125
+ * `"[id]"`, `"[id]:is(h1,h2,h3)"`, `"section[id]"`.
126
+ */
127
+ selector: string;
128
+ /**
129
+ * `IntersectionObserver` `rootMargin`. Default
130
+ * `"-20% 0px -60% 0px"` — an anchor is considered "active" once it crosses
131
+ * into the top 20 % of the viewport (or scroll container).
132
+ */
133
+ rootMargin?: string | undefined;
134
+ /**
135
+ * Lazy getter for the scrollable container. Consulted at creation and
136
+ * re-consulted on every reconcile (DOM mutation), so a container that
137
+ * MOUNTS or CHANGES after the spy is created is honoured: the
138
+ * `IntersectionObserver` root and `MutationObserver` target — both immutable
139
+ * once constructed — are rebuilt to match (#780). `null` (or a missing
140
+ * getter) falls back to the window viewport (`root: null` on the
141
+ * `IntersectionObserver`).
142
+ */
143
+ scrollContainer?: (() => HTMLElement | null) | undefined;
144
+ }
145
+ interface ScrollSpy {
146
+ /** Tear down observer + listeners. Idempotent. */
147
+ destroy: () => void;
148
+ }
149
+ declare function createScrollSpy(router: Router, options: ScrollSpyOptions): ScrollSpy;
150
+ interface ViewTransitions {
151
+ destroy: () => void;
125
152
  }
126
-
153
+ declare function createViewTransitions(router: Router): ViewTransitions;
154
+ /**
155
+ * Resolved navigation channels for a `<Link>` — the single `{ name, params,
156
+ * search }` shape every adapter feeds into `buildHref` / `navigateWithHash` /
157
+ * the active-route source, regardless of which prop form the consumer used.
158
+ */
159
+ interface ResolvedLinkTarget {
160
+ name: string;
161
+ params: Params | undefined;
162
+ search: SearchParams | undefined;
163
+ }
164
+ /**
165
+ * Collapses a `<Link>`'s two prop forms (RFC-4 M2 B2, #1548) into one channel
166
+ * triple:
167
+ *
168
+ * - **Descriptor** — `to={{ name, params?, search? }}` (a `NavigationTarget`).
169
+ * - **Channel props** — `routeName` + `routeParams?` + `routeSearch?`.
170
+ *
171
+ * The forms are mutually exclusive: the TS union on each adapter's `LinkProps`
172
+ * rejects mixing them at compile time, and this helper is the runtime backstop —
173
+ * when `to` is present it **wins**, and a `dev`-visible `console.warn` fires if
174
+ * channel props were also supplied (a JS consumer, an object spread, or an
175
+ * adapter without a strict union can still slip both through). `routeOptions` /
176
+ * `hash` are separate props under BOTH forms (hash is not part of
177
+ * `NavigationTarget` — #532), so they are resolved by the caller, not here.
178
+ */
179
+ declare function resolveLinkTarget(to: NavigationTarget | undefined, routeName: string, routeParams: Params | undefined, routeSearch: SearchParams | undefined): ResolvedLinkTarget;
180
+ declare function shouldNavigate(evt: MouseEvent): boolean;
181
+ /**
182
+ * Does an anchor's `target` send this navigation somewhere the router cannot
183
+ * follow? (#1834)
184
+ *
185
+ * `target` names the browsing context the author wants the URL loaded into.
186
+ * Three values are the router's — absent, empty, `_self` — and every other one
187
+ * goes to the browser, the only thing that can resolve a context name.
188
+ * Intercepting instead is how a `<Link target="_blank">` ends up reloading the
189
+ * same tab rather than opening a new one. React Router's
190
+ * `shouldProcessLinkClick` and TanStack Router's `handleClick` split the same
191
+ * way; neither reproduces browsing contexts inside the router, and neither does
192
+ * this.
193
+ *
194
+ * ⚠ The split is by SPELLING, not by where the value resolves to, and three
195
+ * spellings resolve back to this context anyway: `_parent` and `_top` fall back
196
+ * to `_self` in a document with no ancestor, and `_SELF` matches `_self`
197
+ * ASCII-case-insensitively (MDN, `<a>` § target). All three are handed to the
198
+ * browser, which reaches the right destination by a full page load instead of a
199
+ * transition. Resolving them properly means reproducing frame ancestry and
200
+ * keyword folding here; both reference routers decline, and the cost is a page
201
+ * load rather than a wrong destination.
202
+ *
203
+ * ⚠ Ask this only about an `<a>`. On a `<button v-link>` or a `<div use:link>`
204
+ * the attribute is inert markup the browser will not act on, so deferring there
205
+ * would leave the activation unhandled by anyone. Callers that cannot assume an
206
+ * anchor ask {@link anchorTargetsAnotherContext} instead, which narrows first;
207
+ * `target-predicate-authority-1834` owns which call site is in which set.
208
+ */
209
+ declare function targetsAnotherContext(target: string | null | undefined): boolean;
210
+ /**
211
+ * The same question, asked about an ELEMENT — for the `use:link` / `v-link`
212
+ * forms, which attach to whatever element the consumer wrote and so cannot
213
+ * assume an anchor (#1834). The `<Link>` components pass a value instead
214
+ * (they render the anchor), and so does Angular's directive (its selector is
215
+ * `a[realLink]`).
216
+ *
217
+ * ⚠ `tagName`, never `instanceof HTMLAnchorElement`, for the reason
218
+ * `applyLinkA11y` sets out below: the constructor belongs to the realm this
219
+ * module loaded in, so a real anchor from an iframe `contentDocument` or a
220
+ * micro-frontend fails the check. Failing it HERE re-intercepts the very
221
+ * `target="_blank"` click this predicate exists to leave alone.
222
+ *
223
+ * Anything that is not an HTML anchor answers `false`: `target` is
224
+ * anchor-specific markup the browser will not act on, so a `<button use:link>`
225
+ * or a `<div v-link>` carrying one must still navigate in-app.
226
+ */
227
+ declare function anchorTargetsAnotherContext(element: Element | null | undefined): boolean;
228
+ /**
229
+ * Builds an href for a `<Link>` element.
230
+ *
231
+ * - Prefers the URL plugin's `buildUrl` (browser-plugin, navigation-plugin,
232
+ * hash-plugin) when present.
233
+ * - Falls back to the core's resolving door for runtimes without a URL plugin
234
+ * (memory-plugin, console UIs, NativeScript). In that fallback the hash
235
+ * is appended manually so the rendered href is still correct.
236
+ * - The optional 4th argument is the decoded hash fragment (no leading "#";
237
+ * `<Link hash="#section">` is accepted defensively — leading "#" stripped),
238
+ * passed positionally to mirror `navigateWithHash(router, name, params, hash)`
239
+ * (#1442). Previous 3-arg call sites continue to work unchanged.
240
+ */
241
+ declare function buildHref(router: Router, routeName: string, routeParams: Params, routeSearch?: SearchParams, hash?: string): string | undefined;
242
+ /**
243
+ * `<Link>` click-handler navigation helper (#532).
244
+ *
245
+ * Wraps `router.navigate(name, params, search, opts)` — the query channel took
246
+ * slot 3 in RFC-4 M2 (#1548) — with same-route different-hash
247
+ * detection: when the consumer clicks a hash-bearing Link that targets the
248
+ * current route with the same params but a different fragment, core's
249
+ * SAME_STATES check would otherwise reject the navigation. The helper adds
250
+ * `force: true` and `hashChange: true` automatically — subscribers can then
251
+ * disambiguate via `state.context.url.hashChanged`.
252
+ *
253
+ * For pure programmatic same-route hash-only navigation, callers are
254
+ * documented to pass `{ force: true }` themselves; the auto-bypass here is
255
+ * a UX convenience for `<Link hash>` that all 6 framework adapters share.
256
+ */
257
+ declare function navigateWithHash(router: Router, routeName: string, routeParams: Params, routeSearch: SearchParams | undefined, hash: string | undefined, extraOptions?: NavigationOptions): Promise<State>;
258
+ declare function buildActiveClassName(isActive: boolean, activeClassName: string | undefined, baseClassName: string | undefined): string | undefined;
259
+ /**
260
+ * One-level structural equality using `Object.is` per key.
261
+ *
262
+ * **String-keyed properties only (Mini-sprint E.3 — audit-5 §4.2 #3).**
263
+ * Implementation walks `Object.keys()` which by spec returns only
264
+ * enumerable own STRING keys. Symbol-keyed properties — created via
265
+ * `obj[Symbol("brand")] = value` or `{ [Symbol(...)]: value }` — are
266
+ * NOT compared. Two records that differ only in a Symbol-keyed value
267
+ * will compare as equal.
268
+ *
269
+ * This is intentional: route params and Link options are documented as
270
+ * string-keyed primitives (string | number | boolean) — Symbol-keyed
271
+ * metadata (e.g. brand markers, private state) doesn't belong in a
272
+ * cache-key comparison. Switching to `Reflect.ownKeys()` would extend
273
+ * the contract to symbols at the cost of one extra allocation per call
274
+ * (Reflect.ownKeys composes string-keys + symbol-keys arrays). If a
275
+ * consumer relies on symbol-keyed metadata for navigation
276
+ * disambiguation, they should encode it into a string key instead.
277
+ *
278
+ * Mirrors React's `shallowEqual` (packages/shared/shallowEqual.js) in
279
+ * both the string-keys-only semantics and the `hasOwnProperty` guard
280
+ * below.
281
+ */
282
+ declare function shallowEqual(prev: object | undefined, next: object | undefined): boolean;
283
+ declare function applyLinkA11y(element: HTMLElement | null | undefined): void;
127
284
  interface RouteSignals<P extends Params = Params> {
128
- readonly routeState: Signal<RouteSnapshot<P>>;
129
- readonly navigator: Navigator;
285
+ readonly routeState: Signal<RouteSnapshot$1<P>>;
286
+ readonly navigator: Navigator$1;
130
287
  }
131
288
  interface ErrorContext {
132
- $implicit: RouterError;
133
- resetError: () => void;
289
+ $implicit: RouterError;
290
+ resetError: () => void;
134
291
  }
135
-
136
292
  /**
137
293
  * The three DI tokens live in their own leaf module (#1525). Declaring them in
138
294
  * `providers.ts` forms a real value-level dependency cycle: that file also
@@ -143,17 +299,15 @@ interface ErrorContext {
143
299
  * (`@real-router/angular` barrel, `providersFactory`, `injectRouter`) is
144
300
  * unchanged.
145
301
  */
146
- declare const ROUTER: InjectionToken<Router<object>>;
147
- declare const NAVIGATOR: InjectionToken<Navigator>;
148
- declare const ROUTE: InjectionToken<RouteSignals<_real_router_core.Params>>;
149
-
302
+ export declare const ROUTER: InjectionToken<Router<object>>;
303
+ export declare const NAVIGATOR: InjectionToken<Navigator$1>;
304
+ export declare const ROUTE: InjectionToken<RouteSignals<import("@real-router/core").Params>>;
150
305
  interface RealRouterOptions {
151
- scrollRestoration?: ScrollRestorationOptions;
152
- scrollSpy?: ScrollSpyOptions;
153
- viewTransitions?: boolean;
306
+ scrollRestoration?: ScrollRestorationOptions;
307
+ scrollSpy?: ScrollSpyOptions;
308
+ viewTransitions?: boolean;
154
309
  }
155
- declare function provideRealRouter(router: Router, options?: RealRouterOptions): EnvironmentProviders;
156
-
310
+ export declare function provideRealRouter(router: Router, options?: RealRouterOptions): EnvironmentProviders;
157
311
  /**
158
312
  * Factory function for deriving per-request dependencies from an SSR `Request`.
159
313
  *
@@ -175,55 +329,55 @@ type RequestDepsFactory<TDeps extends DefaultDependencies = DefaultDependencies>
175
329
  */
176
330
  type RequestPluginsFactory<TDeps extends DefaultDependencies = DefaultDependencies> = (request: Request | null) => readonly PluginFactory<TDeps>[];
177
331
  interface RealRouterFactoryOptions<TDeps extends DefaultDependencies = DefaultDependencies> {
178
- /**
179
- * Base router instance — created once at app bootstrap (typically inside
180
- * `app.config.ts` module scope). Each request clones this router via
181
- * `cloneRouter(baseRouter, deps?.(request))`, producing an isolated
182
- * router with its own state, plugins, and subscriptions.
183
- *
184
- * **Important:** the `baseRouter` MUST NOT be started ahead of time —
185
- * `provideAppInitializer` is responsible for calling `router.start(url)`
186
- * inside the per-request DI scope.
187
- */
188
- baseRouter: Router<TDeps>;
189
- /**
190
- * Plugins applied to every per-request router clone.
191
- *
192
- * **Static form** — same plugins on both sides:
193
- * ```ts
194
- * plugins: [ssrDataPluginFactory(loaders)]
195
- * ```
196
- *
197
- * **Function form** — conditional client vs server (recommended when any
198
- * browser-only plugin is involved):
199
- * ```ts
200
- * plugins: (request) => request
201
- * ? [ssrDataPluginFactory(loaders)]
202
- * : [browserPluginFactory(), ssrDataPluginFactory(loaders)],
203
- * ```
204
- *
205
- * Function form is required if the plugin list contains
206
- * `browser-plugin`, `navigation-plugin`, or `hash-plugin` — those plugins
207
- * read `window.history` / `window.location` and crash on the server.
208
- */
209
- plugins?: readonly PluginFactory<TDeps>[] | RequestPluginsFactory<TDeps>;
210
- /**
211
- * Derive request-scoped deps (e.g. `currentUser` from cookies). The result
212
- * is passed to `cloneRouter(baseRouter, deps)` and merged with any deps
213
- * already registered on the base router.
214
- *
215
- * Receives `request: Request | null`:
216
- * - non-null on server (real `Request` from `@angular/ssr` runtime)
217
- * - non-null on SSG (mocked `Request` via `platformProviders`)
218
- * - null on client (derive deps externally — e.g. parse `document.cookie`)
219
- */
220
- deps?: RequestDepsFactory<TDeps>;
221
- /** Optional scroll restoration — same semantics as `provideRealRouter`. */
222
- scrollRestoration?: ScrollRestorationOptions;
223
- /** Optional scroll spy — same semantics as `provideRealRouter`. */
224
- scrollSpy?: ScrollSpyOptions;
225
- /** Optional view transitions — same semantics as `provideRealRouter`. */
226
- viewTransitions?: boolean;
332
+ /**
333
+ * Base router instance — created once at app bootstrap (typically inside
334
+ * `app.config.ts` module scope). Each request clones this router via
335
+ * `cloneRouter(baseRouter, deps?.(request))`, producing an isolated
336
+ * router with its own state, plugins, and subscriptions.
337
+ *
338
+ * **Important:** the `baseRouter` MUST NOT be started ahead of time —
339
+ * `provideAppInitializer` is responsible for calling `router.start(url)`
340
+ * inside the per-request DI scope.
341
+ */
342
+ baseRouter: Router<TDeps>;
343
+ /**
344
+ * Plugins applied to every per-request router clone.
345
+ *
346
+ * **Static form** — same plugins on both sides:
347
+ * ```ts
348
+ * plugins: [ssrDataPluginFactory(loaders)]
349
+ * ```
350
+ *
351
+ * **Function form** — conditional client vs server (recommended when any
352
+ * browser-only plugin is involved):
353
+ * ```ts
354
+ * plugins: (request) => request
355
+ * ? [ssrDataPluginFactory(loaders)]
356
+ * : [browserPluginFactory(), ssrDataPluginFactory(loaders)],
357
+ * ```
358
+ *
359
+ * Function form is required if the plugin list contains
360
+ * `browser-plugin`, `navigation-plugin`, or `hash-plugin` — those plugins
361
+ * read `window.history` / `window.location` and crash on the server.
362
+ */
363
+ plugins?: readonly PluginFactory<TDeps>[] | RequestPluginsFactory<TDeps>;
364
+ /**
365
+ * Derive request-scoped deps (e.g. `currentUser` from cookies). The result
366
+ * is passed to `cloneRouter(baseRouter, deps)` and merged with any deps
367
+ * already registered on the base router.
368
+ *
369
+ * Receives `request: Request | null`:
370
+ * - non-null on server (real `Request` from `@angular/ssr` runtime)
371
+ * - non-null on SSG (mocked `Request` via `platformProviders`)
372
+ * - null on client (derive deps externally — e.g. parse `document.cookie`)
373
+ */
374
+ deps?: RequestDepsFactory<TDeps>;
375
+ /** Optional scroll restoration — same semantics as `provideRealRouter`. */
376
+ scrollRestoration?: ScrollRestorationOptions;
377
+ /** Optional scroll spy — same semantics as `provideRealRouter`. */
378
+ scrollSpy?: ScrollSpyOptions;
379
+ /** Optional view transitions — same semantics as `provideRealRouter`. */
380
+ viewTransitions?: boolean;
227
381
  }
228
382
  /**
229
383
  * `provideRealRouterFactory` — environment providers for SSR / SSG scenarios.
@@ -250,52 +404,44 @@ interface RealRouterFactoryOptions<TDeps extends DefaultDependencies = DefaultDe
250
404
  * @param options - Factory configuration — see `RealRouterFactoryOptions`.
251
405
  * @returns `EnvironmentProviders` to spread into `ApplicationConfig.providers`.
252
406
  */
253
- declare function provideRealRouterFactory<TDeps extends DefaultDependencies = DefaultDependencies>(options: RealRouterFactoryOptions<TDeps>): EnvironmentProviders;
254
-
255
- declare function injectRouter(): Router;
256
-
257
- declare function injectNavigator(): Navigator;
258
-
407
+ export declare function provideRealRouterFactory<TDeps extends DefaultDependencies = DefaultDependencies>(options: RealRouterFactoryOptions<TDeps>): EnvironmentProviders;
408
+ export declare function injectRouter(): Router;
409
+ export declare function injectNavigator(): Navigator$1;
259
410
  type NonNullRouteSignals<P extends Params> = Omit<RouteSignals<P>, "routeState"> & {
260
- readonly routeState: Signal<Omit<RouteSnapshot<P>, "route"> & {
261
- route: State<P>;
262
- }>;
411
+ readonly routeState: Signal<Omit<RouteSnapshot$1<P>, "route"> & {
412
+ route: State<P>;
413
+ }>;
263
414
  };
264
- declare function injectRoute<P extends Params = Params>(): NonNullRouteSignals<P>;
265
-
266
- declare function injectRouteNode(nodeName: string): RouteSignals;
267
-
268
- declare function injectRouteUtils(): RouteUtils;
269
-
270
- declare function injectRouterTransition(): Signal<RouterTransitionSnapshot>;
271
-
272
- declare function injectIsActiveRoute(routeName: string, params?: Params, search?: SearchParams, options?: {
273
- strict?: boolean;
274
- ignoreQueryParams?: boolean;
275
- hash?: string;
415
+ export declare function injectRoute<P extends Params = Params>(): NonNullRouteSignals<P>;
416
+ export declare function injectRouteNode(nodeName: string): RouteSignals;
417
+ export declare function injectRouteUtils(): RouteUtils;
418
+ export declare function injectRouterTransition(): Signal<RouterTransitionSnapshot$1>;
419
+ export declare function injectIsActiveRoute(routeName: string, params?: Params, search?: SearchParams, options?: {
420
+ strict?: boolean;
421
+ ignoreQueryParams?: boolean;
422
+ hash?: string;
276
423
  }): Signal<boolean>;
277
-
278
424
  interface RouteExitContext {
279
- /** The route being left. */
280
- route: State;
281
- /** The route being navigated to. */
282
- nextRoute: State;
283
- /**
284
- * AbortSignal that fires when this navigation is superseded by a later
285
- * one (rapid clicks). Already filtered: when the handler runs,
286
- * `signal.aborted` is guaranteed to be `false`. Use
287
- * `signal.addEventListener("abort", cleanup, { once: true })` for
288
- * cleanup that must run on cancellation.
289
- */
290
- signal: AbortSignal;
425
+ /** The route being left. */
426
+ route: State;
427
+ /** The route being navigated to. */
428
+ nextRoute: State;
429
+ /**
430
+ * AbortSignal that fires when this navigation is superseded by a later
431
+ * one (rapid clicks). Already filtered: when the handler runs,
432
+ * `signal.aborted` is guaranteed to be `false`. Use
433
+ * `signal.addEventListener("abort", cleanup, { once: true })` for
434
+ * cleanup that must run on cancellation.
435
+ */
436
+ signal: AbortSignal;
291
437
  }
292
438
  interface UseRouteExitOptions {
293
- /**
294
- * Skip the handler when `route.name === nextRoute.name`
295
- * (sort/filter/query-only navigations on the same route). Default:
296
- * `true`.
297
- */
298
- skipSameRoute?: boolean;
439
+ /**
440
+ * Skip the handler when `route.name === nextRoute.name`
441
+ * (sort/filter/query-only navigations on the same route). Default:
442
+ * `true`.
443
+ */
444
+ skipSameRoute?: boolean;
299
445
  }
300
446
  type RouteExitHandler = (context: RouteExitContext) => void | Promise<void>;
301
447
  /**
@@ -360,22 +506,21 @@ type RouteExitHandler = (context: RouteExitContext) => void | Promise<void>;
360
506
  * });
361
507
  * ```
362
508
  */
363
- declare function injectRouteExit(handler: RouteExitHandler, options?: UseRouteExitOptions): void;
364
-
509
+ export declare function injectRouteExit(handler: RouteExitHandler, options?: UseRouteExitOptions): void;
365
510
  interface RouteEnterContext {
366
- /** The route that was just activated. */
367
- route: State;
368
- /** The route that was active immediately before this navigation. */
369
- previousRoute: State;
511
+ /** The route that was just activated. */
512
+ route: State;
513
+ /** The route that was active immediately before this navigation. */
514
+ previousRoute: State;
370
515
  }
371
516
  type RouteEnterHandler = (context: RouteEnterContext) => void;
372
517
  interface UseRouteEnterOptions {
373
- /**
374
- * Skip the handler when `route.name === previousRoute.name`
375
- * (sort/filter/query-only navigations on the same route). Default:
376
- * `true`. Symmetric with `injectRouteExit`'s same-name option.
377
- */
378
- skipSameRoute?: boolean;
518
+ /**
519
+ * Skip the handler when `route.name === previousRoute.name`
520
+ * (sort/filter/query-only navigations on the same route). Default:
521
+ * `true`. Symmetric with `injectRouteExit`'s same-name option.
522
+ */
523
+ skipSameRoute?: boolean;
379
524
  }
380
525
  /**
381
526
  * Fire `handler` once when the component is created as a result of a
@@ -434,138 +579,231 @@ interface UseRouteEnterOptions {
434
579
  * });
435
580
  * ```
436
581
  */
437
- declare function injectRouteEnter(handler: RouteEnterHandler, options?: UseRouteEnterOptions): void;
438
-
439
- declare class RouteMatch {
440
- readonly routeMatch: _angular_core.InputSignal<string>;
441
- readonly templateRef: TemplateRef<any>;
442
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouteMatch, never>;
443
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouteMatch, "ng-template[routeMatch]", never, { "routeMatch": { "alias": "routeMatch"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
582
+ export declare function injectRouteEnter(handler: RouteEnterHandler, options?: UseRouteEnterOptions): void;
583
+ export declare class RouteMatch {
584
+ readonly routeMatch: import("@angular/core").InputSignal<string>;
585
+ readonly templateRef: TemplateRef<any>;
586
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteMatch, never>;
587
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouteMatch, "ng-template[routeMatch]", never, {
588
+ "routeMatch": {
589
+ "alias": "routeMatch";
590
+ "required": true;
591
+ "isSignal": true;
592
+ };
593
+ }, {}, never, never, true, never>;
444
594
  }
445
-
446
- declare class RouteNotFound {
447
- readonly templateRef: TemplateRef<any>;
448
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouteNotFound, never>;
449
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouteNotFound, "ng-template[routeNotFound]", never, {}, {}, never, never, true, never>;
595
+ export declare class RouteNotFound {
596
+ readonly templateRef: TemplateRef<any>;
597
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteNotFound, never>;
598
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouteNotFound, "ng-template[routeNotFound]", never, {}, {}, never, never, true, never>;
450
599
  }
451
-
452
- declare class RouteSelf {
453
- readonly templateRef: TemplateRef<any>;
454
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouteSelf, never>;
455
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouteSelf, "ng-template[routeSelf]", never, {}, {}, never, never, true, never>;
600
+ export declare class RouteSelf {
601
+ readonly templateRef: TemplateRef<any>;
602
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteSelf, never>;
603
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouteSelf, "ng-template[routeSelf]", never, {}, {}, never, never, true, never>;
456
604
  }
457
-
458
- declare class RouteView {
459
- readonly nodeName: _angular_core.InputSignal<string>;
460
- readonly matches: _angular_core.Signal<readonly RouteMatch[]>;
461
- readonly selfs: _angular_core.Signal<readonly RouteSelf[]>;
462
- readonly notFounds: _angular_core.Signal<readonly RouteNotFound[]>;
463
- readonly activeTemplate: _angular_core.Signal<TemplateRef<unknown> | null>;
464
- private readonly router;
465
- private readonly cdr;
466
- private readonly routeState;
467
- private readonly matchEntries;
468
- private readonly matchedTemplate;
469
- private readonly fallbackTemplate;
470
- constructor();
471
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouteView, never>;
472
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<RouteView, "route-view", never, { "nodeName": { "alias": "routeNode"; "required": false; "isSignal": true; }; }, {}, ["matches", "selfs", "notFounds"], never, true, never>;
605
+ export declare class RouteView {
606
+ readonly nodeName: import("@angular/core").InputSignal<string>;
607
+ readonly matches: import("@angular/core").Signal<readonly RouteMatch[]>;
608
+ readonly selfs: import("@angular/core").Signal<readonly RouteSelf[]>;
609
+ readonly notFounds: import("@angular/core").Signal<readonly RouteNotFound[]>;
610
+ readonly activeTemplate: import("@angular/core").Signal<TemplateRef<unknown> | null>;
611
+ private readonly router;
612
+ private readonly cdr;
613
+ private readonly routeState;
614
+ private readonly matchEntries;
615
+ private readonly matchedTemplate;
616
+ private readonly fallbackTemplate;
617
+ constructor();
618
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteView, never>;
619
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouteView, "route-view", never, {
620
+ "nodeName": {
621
+ "alias": "routeNode";
622
+ "required": false;
623
+ "isSignal": true;
624
+ };
625
+ }, {}, ["matches", "selfs", "notFounds"], never, true, never>;
473
626
  }
474
-
475
- declare class RouterErrorBoundary {
476
- readonly errorTemplate: _angular_core.InputSignal<TemplateRef<ErrorContext> | undefined>;
477
- readonly onError: _angular_core.OutputEmitterRef<{
478
- error: RouterError;
479
- toRoute: State | null;
480
- fromRoute: State | null;
481
- }>;
482
- readonly errorContext: _angular_core.Signal<ErrorContext | null>;
483
- private readonly router;
484
- private readonly snapshot;
485
- constructor();
486
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterErrorBoundary, never>;
487
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<RouterErrorBoundary, "router-error-boundary", never, { "errorTemplate": { "alias": "errorTemplate"; "required": false; "isSignal": true; }; }, { "onError": "onError"; }, never, ["*"], true, never>;
627
+ export declare class RouterErrorBoundary {
628
+ readonly errorTemplate: import("@angular/core").InputSignal<TemplateRef<ErrorContext> | undefined>;
629
+ readonly onError: import("@angular/core").OutputEmitterRef<{
630
+ error: RouterError;
631
+ toRoute: State | null;
632
+ fromRoute: State | null;
633
+ }>;
634
+ readonly errorContext: import("@angular/core").Signal<ErrorContext | null>;
635
+ private readonly router;
636
+ private readonly snapshot;
637
+ constructor();
638
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterErrorBoundary, never>;
639
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouterErrorBoundary, "router-error-boundary", never, {
640
+ "errorTemplate": {
641
+ "alias": "errorTemplate";
642
+ "required": false;
643
+ "isSignal": true;
644
+ };
645
+ }, {
646
+ "onError": "onError";
647
+ }, never, ["*"], true, never>;
488
648
  }
489
-
490
- declare class NavigationAnnouncer implements OnInit {
491
- /**
492
- * Optional announcer customization — mirrors the `announceNavigation`
493
- * options exposed by the react/preact/vue/solid/svelte adapters.
494
- * `prefix` overrides the default `"Navigated to "`; `getAnnouncementText`
495
- * computes the full announcement from the resolved route (falling back to
496
- * the default `h1 → title → route-name` chain on empty/throw). Read once in
497
- * `ngOnInit` — after the input bindings have fired — because signal inputs
498
- * are not yet bound at field-initialization time (same pattern as the SSR
499
- * `<http-status-code>` component).
500
- */
501
- readonly prefix: _angular_core.InputSignal<string | undefined>;
502
- readonly getAnnouncementText: _angular_core.InputSignal<((route: State) => string) | undefined>;
503
- private readonly router;
504
- private announcer;
505
- constructor();
506
- ngOnInit(): void;
507
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationAnnouncer, never>;
508
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavigationAnnouncer, "navigation-announcer", never, { "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "getAnnouncementText": { "alias": "getAnnouncementText"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
649
+ export declare class NavigationAnnouncer implements OnInit {
650
+ /**
651
+ * Optional announcer customization — mirrors the `announceNavigation`
652
+ * options exposed by the react/preact/vue/solid/svelte adapters.
653
+ * `prefix` overrides the default `"Navigated to "`; `getAnnouncementText`
654
+ * computes the full announcement from the resolved route (falling back to
655
+ * the default `h1 → title → route-name` chain on empty/throw). Read once in
656
+ * `ngOnInit` — after the input bindings have fired — because signal inputs
657
+ * are not yet bound at field-initialization time (same pattern as the SSR
658
+ * `<http-status-code>` component).
659
+ */
660
+ readonly prefix: import("@angular/core").InputSignal<string | undefined>;
661
+ readonly getAnnouncementText: import("@angular/core").InputSignal<((route: State) => string) | undefined>;
662
+ private readonly router;
663
+ private announcer;
664
+ constructor();
665
+ ngOnInit(): void;
666
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationAnnouncer, never>;
667
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigationAnnouncer, "navigation-announcer", never, {
668
+ "prefix": {
669
+ "alias": "prefix";
670
+ "required": false;
671
+ "isSignal": true;
672
+ };
673
+ "getAnnouncementText": {
674
+ "alias": "getAnnouncementText";
675
+ "required": false;
676
+ "isSignal": true;
677
+ };
678
+ }, {}, never, never, true, never>;
509
679
  }
510
-
511
- declare class RealLink {
512
- readonly routeName: _angular_core.InputSignal<string>;
513
- readonly routeParams: _angular_core.InputSignal<Params | undefined>;
514
- /**
515
- * Query (search) params for the link's target (RFC-4 M2, #1548) — parallel to
516
- * `routeParams`, the path/query split's view-layer channel.
517
- */
518
- readonly routeSearch: _angular_core.InputSignal<SearchParams | undefined>;
519
- /**
520
- * Descriptor form (RFC-4 M2 B2, #1548): `[to]="{ name, params?, search? }"` —
521
- * mutually exclusive with the routeName/routeParams/routeSearch channels
522
- * (runtime dev-warn on conflict via `resolveLinkTarget`, `to` wins).
523
- */
524
- readonly to: _angular_core.InputSignal<NavigationTarget<Params, SearchParams> | undefined>;
525
- readonly routeOptions: _angular_core.InputSignal<NavigationOptions>;
526
- readonly activeClassName: _angular_core.InputSignal<string>;
527
- readonly activeStrict: _angular_core.InputSignal<boolean>;
528
- readonly ignoreQueryParams: _angular_core.InputSignal<boolean>;
529
- /**
530
- * URL fragment (decoded form, no leading "#") (#532).
531
- * - omitted/`undefined` → preserve current fragment on same-route navigation
532
- * - `""` → clear fragment
533
- * - non-empty → set fragment
534
- */
535
- readonly hash: _angular_core.InputSignal<string | undefined>;
536
- private readonly router;
537
- private readonly anchor;
538
- private readonly isActive;
539
- private readonly stableParams;
540
- private readonly href;
541
- private prevActiveClass;
542
- private prevHref;
543
- private prevActive;
544
- constructor();
545
- onClick(event: MouseEvent): void;
546
- private updateHref;
547
- private updateActiveClass;
548
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RealLink, never>;
549
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RealLink, "a[realLink]", never, { "routeName": { "alias": "routeName"; "required": false; "isSignal": true; }; "routeParams": { "alias": "routeParams"; "required": false; "isSignal": true; }; "routeSearch": { "alias": "routeSearch"; "required": false; "isSignal": true; }; "to": { "alias": "to"; "required": false; "isSignal": true; }; "routeOptions": { "alias": "routeOptions"; "required": false; "isSignal": true; }; "activeClassName": { "alias": "activeClassName"; "required": false; "isSignal": true; }; "activeStrict": { "alias": "activeStrict"; "required": false; "isSignal": true; }; "ignoreQueryParams": { "alias": "ignoreQueryParams"; "required": false; "isSignal": true; }; "hash": { "alias": "hash"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
680
+ export declare class RealLink {
681
+ readonly routeName: import("@angular/core").InputSignal<string>;
682
+ readonly routeParams: import("@angular/core").InputSignal<Params | undefined>;
683
+ /**
684
+ * Query (search) params for the link's target (RFC-4 M2, #1548) — parallel to
685
+ * `routeParams`, the path/query split's view-layer channel.
686
+ */
687
+ readonly routeSearch: import("@angular/core").InputSignal<SearchParams | undefined>;
688
+ /**
689
+ * Descriptor form (RFC-4 M2 B2, #1548): `[to]="{ name, params?, search? }"` —
690
+ * mutually exclusive with the routeName/routeParams/routeSearch channels
691
+ * (runtime dev-warn on conflict via `resolveLinkTarget`, `to` wins).
692
+ */
693
+ readonly to: import("@angular/core").InputSignal<NavigationTarget<Params, SearchParams> | undefined>;
694
+ readonly routeOptions: import("@angular/core").InputSignal<NavigationOptions>;
695
+ readonly activeClassName: import("@angular/core").InputSignal<string>;
696
+ readonly activeStrict: import("@angular/core").InputSignal<boolean>;
697
+ readonly ignoreQueryParams: import("@angular/core").InputSignal<boolean>;
698
+ /**
699
+ * URL fragment (decoded form, no leading "#") (#532).
700
+ * - omitted/`undefined` → preserve current fragment on same-route navigation
701
+ * - `""` → clear fragment
702
+ * - non-empty → set fragment
703
+ */
704
+ readonly hash: import("@angular/core").InputSignal<string | undefined>;
705
+ private readonly router;
706
+ private readonly anchor;
707
+ private readonly isActive;
708
+ private readonly stableParams;
709
+ private readonly href;
710
+ private prevActiveClass;
711
+ private prevHref;
712
+ private prevActive;
713
+ constructor();
714
+ onClick(event: MouseEvent): void;
715
+ private updateHref;
716
+ private updateActiveClass;
717
+ static ɵfac: i0.ɵɵFactoryDeclaration<RealLink, never>;
718
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RealLink, "a[realLink]", never, {
719
+ "routeName": {
720
+ "alias": "routeName";
721
+ "required": false;
722
+ "isSignal": true;
723
+ };
724
+ "routeParams": {
725
+ "alias": "routeParams";
726
+ "required": false;
727
+ "isSignal": true;
728
+ };
729
+ "routeSearch": {
730
+ "alias": "routeSearch";
731
+ "required": false;
732
+ "isSignal": true;
733
+ };
734
+ "to": {
735
+ "alias": "to";
736
+ "required": false;
737
+ "isSignal": true;
738
+ };
739
+ "routeOptions": {
740
+ "alias": "routeOptions";
741
+ "required": false;
742
+ "isSignal": true;
743
+ };
744
+ "activeClassName": {
745
+ "alias": "activeClassName";
746
+ "required": false;
747
+ "isSignal": true;
748
+ };
749
+ "activeStrict": {
750
+ "alias": "activeStrict";
751
+ "required": false;
752
+ "isSignal": true;
753
+ };
754
+ "ignoreQueryParams": {
755
+ "alias": "ignoreQueryParams";
756
+ "required": false;
757
+ "isSignal": true;
758
+ };
759
+ "hash": {
760
+ "alias": "hash";
761
+ "required": false;
762
+ "isSignal": true;
763
+ };
764
+ }, {}, never, never, true, never>;
550
765
  }
551
-
552
- declare class RealLinkActive {
553
- readonly realLinkActive: _angular_core.InputSignal<string>;
554
- readonly routeName: _angular_core.InputSignal<string>;
555
- readonly routeParams: _angular_core.InputSignal<Params | undefined>;
556
- readonly activeStrict: _angular_core.InputSignal<boolean>;
557
- readonly ignoreQueryParams: _angular_core.InputSignal<boolean>;
558
- private readonly router;
559
- private readonly element;
560
- private readonly isActive;
561
- private readonly stableParams;
562
- private prevActive;
563
- constructor();
564
- private updateClass;
565
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RealLinkActive, never>;
566
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RealLinkActive, "[realLinkActive]", never, { "realLinkActive": { "alias": "realLinkActive"; "required": false; "isSignal": true; }; "routeName": { "alias": "routeName"; "required": false; "isSignal": true; }; "routeParams": { "alias": "routeParams"; "required": false; "isSignal": true; }; "activeStrict": { "alias": "activeStrict"; "required": false; "isSignal": true; }; "ignoreQueryParams": { "alias": "ignoreQueryParams"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
766
+ export declare class RealLinkActive {
767
+ readonly realLinkActive: import("@angular/core").InputSignal<string>;
768
+ readonly routeName: import("@angular/core").InputSignal<string>;
769
+ readonly routeParams: import("@angular/core").InputSignal<Params | undefined>;
770
+ readonly activeStrict: import("@angular/core").InputSignal<boolean>;
771
+ readonly ignoreQueryParams: import("@angular/core").InputSignal<boolean>;
772
+ private readonly router;
773
+ private readonly element;
774
+ private readonly isActive;
775
+ private readonly stableParams;
776
+ private prevActive;
777
+ constructor();
778
+ private updateClass;
779
+ static ɵfac: i0.ɵɵFactoryDeclaration<RealLinkActive, never>;
780
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RealLinkActive, "[realLinkActive]", never, {
781
+ "realLinkActive": {
782
+ "alias": "realLinkActive";
783
+ "required": false;
784
+ "isSignal": true;
785
+ };
786
+ "routeName": {
787
+ "alias": "routeName";
788
+ "required": false;
789
+ "isSignal": true;
790
+ };
791
+ "routeParams": {
792
+ "alias": "routeParams";
793
+ "required": false;
794
+ "isSignal": true;
795
+ };
796
+ "activeStrict": {
797
+ "alias": "activeStrict";
798
+ "required": false;
799
+ "isSignal": true;
800
+ };
801
+ "ignoreQueryParams": {
802
+ "alias": "ignoreQueryParams";
803
+ "required": false;
804
+ "isSignal": true;
805
+ };
806
+ }, {}, never, never, true, never>;
567
807
  }
568
-
569
- export { NAVIGATOR, NavigationAnnouncer, ROUTE, ROUTER, RealLink, RealLinkActive, RouteMatch, RouteNotFound, RouteSelf, RouteView, RouterErrorBoundary, createDirectionTracker, injectIsActiveRoute, injectNavigator, injectRoute, injectRouteEnter, injectRouteExit, injectRouteNode, injectRouteUtils, injectRouter, injectRouterTransition, provideRealRouter, provideRealRouterFactory };
570
- export type { DirectionTracker, ErrorContext, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, UseRouteEnterOptions, UseRouteExitOptions };
571
- //# sourceMappingURL=real-router-angular.d.ts.map
808
+ export type { DirectionTracker, ErrorContext, Navigator, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, RouteSnapshot, RouterErrorSnapshot, RouterTransitionSnapshot, UseRouteEnterOptions, UseRouteExitOptions };
809
+ //# sourceMappingURL=real-router-angular.d.ts.map