1 | import * as React from "react";
|
2 | import { MemoryRouter, Navigate, Outlet, Route, Router, Routes, createRoutesFromChildren, generatePath, matchRoutes, matchPath, resolvePath, renderMatches, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useParams, useResolvedPath, useRoutes } from "./react-router-index";
|
3 | import type { To } from "./react-router-index";
|
4 | export { MemoryRouter, Navigate, Outlet, Route, Router, Routes, createRoutesFromChildren, generatePath, matchRoutes, matchPath, renderMatches, resolvePath, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useParams, useResolvedPath, useRoutes };
|
5 | export type { Location, Path, To, NavigationType, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, Navigator, OutletProps, Params, PathMatch, RouteMatch, RouteObject, RouteProps, PathRouteProps, LayoutRouteProps, IndexRouteProps, RouterProps, RoutesProps } from "./react-router-index";
|
6 |
|
7 | export { UNSAFE_NavigationContext, UNSAFE_LocationContext, UNSAFE_RouteContext } from "./react-router-index";
|
8 | export interface BrowserRouterProps {
|
9 | basename?: string;
|
10 | children?: React.ReactNode;
|
11 | window?: Window;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | export declare function BrowserRouter({ basename, children, window }: BrowserRouterProps): JSX.Element;
|
17 | export interface HashRouterProps {
|
18 | basename?: string;
|
19 | children?: React.ReactNode;
|
20 | window?: Window;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function HashRouter({ basename, children, window }: HashRouterProps): JSX.Element;
|
27 | export interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> {
|
28 | reloadDocument?: boolean;
|
29 | replace?: boolean;
|
30 | state?: any;
|
31 | to: To;
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 | export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
37 | export interface NavLinkProps extends Omit<LinkProps, "className" | "style"> {
|
38 | caseSensitive?: boolean;
|
39 | className?: string | ((props: {
|
40 | isActive: boolean;
|
41 | }) => string);
|
42 | end?: boolean;
|
43 | style?: React.CSSProperties | ((props: {
|
44 | isActive: boolean;
|
45 | }) => React.CSSProperties);
|
46 | }
|
47 |
|
48 |
|
49 |
|
50 | export declare const NavLink: React.ForwardRefExoticComponent<NavLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | export declare function useLinkClickHandler<E extends Element = HTMLAnchorElement>(to: To, { target, replace: replaceProp, state }?: {
|
57 | target?: React.HTMLAttributeAnchorTarget;
|
58 | replace?: boolean;
|
59 | state?: any;
|
60 | }): (event: React.MouseEvent<E, MouseEvent>) => void;
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | export declare function useSearchParams(defaultInit?: URLSearchParamsInit): readonly [URLSearchParams, (nextInit: URLSearchParamsInit, navigateOptions?: {
|
66 | replace?: boolean | undefined;
|
67 | state?: any;
|
68 | } | undefined) => void];
|
69 | export declare type ParamKeyValuePair = [string, string];
|
70 | export declare type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | export declare function createSearchParams(init?: URLSearchParamsInit): URLSearchParams; |
\ | No newline at end of file |