1 | import * as React from "react";
|
2 | import type { History, Location } from "history";
|
3 | import { Action as NavigationType } from "history";
|
4 | import type { RouteMatch } from "./router";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare type Navigator = Pick<History, "go" | "push" | "replace" | "createHref">;
|
15 | interface NavigationContextObject {
|
16 | basename: string;
|
17 | navigator: Navigator;
|
18 | static: boolean;
|
19 | }
|
20 | export declare const NavigationContext: React.Context<NavigationContextObject>;
|
21 | interface LocationContextObject {
|
22 | location: Location;
|
23 | navigationType: NavigationType;
|
24 | }
|
25 | export declare const LocationContext: React.Context<LocationContextObject>;
|
26 | interface RouteContextObject {
|
27 | outlet: React.ReactElement | null;
|
28 | matches: RouteMatch[];
|
29 | }
|
30 | export declare const RouteContext: React.Context<RouteContextObject>;
|
31 | export {};
|