1 | import * as React from "react";
|
2 | import type { GestureResponderEvent, TouchableHighlightProps } from "react-native";
|
3 | import type { To, MemoryRouterProps, NavigateOptions, RelativeRoutingType } from "react-router";
|
4 | import URLSearchParams from "@ungap/url-search-params";
|
5 | export type { ActionFunction, ActionFunctionArgs, AwaitProps, Blocker, BlockerFunction, DataRouteMatch, DataRouteObject, DataStrategyFunction, DataStrategyFunctionArgs, DataStrategyMatch, DataStrategyResult, ErrorResponse, Fetcher, FutureConfig, Hash, IndexRouteObject, IndexRouteProps, JsonFunction, LazyRouteFunction, LayoutRouteProps, LoaderFunction, LoaderFunctionArgs, Location, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, Navigation, Navigator, NonIndexRouteObject, OutletProps, Params, ParamParseKey, Path, PathMatch, Pathname, PathParam, PathPattern, PathRouteProps, RedirectFunction, RelativeRoutingType, RouteMatch, RouteObject, RouteProps, RouterProps, RouterProviderProps, RoutesProps, Search, ShouldRevalidateFunction, ShouldRevalidateFunctionArgs, To, UIMatch, } from "react-router";
|
6 | export { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, RouterProvider, Routes, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, isRouteErrorResponse, generatePath, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, replace, renderMatches, resolvePath, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, } from "react-router";
|
7 |
|
8 | export { UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_NavigationContext, UNSAFE_LocationContext, UNSAFE_RouteContext, UNSAFE_useRouteId, } from "react-router";
|
9 | export interface NativeRouterProps extends MemoryRouterProps {
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 | export declare function NativeRouter(props: NativeRouterProps): React.JSX.Element;
|
15 | export interface LinkProps extends TouchableHighlightProps {
|
16 | children?: React.ReactNode;
|
17 | onPress?: (event: GestureResponderEvent) => void;
|
18 | relative?: RelativeRoutingType;
|
19 | replace?: boolean;
|
20 | state?: any;
|
21 | to: To;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | export declare function Link({ onPress, relative, replace, state, to, ...rest }: LinkProps): React.JSX.Element;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function useLinkPressHandler(to: To, { replace, state, relative, }?: {
|
33 | replace?: boolean;
|
34 | state?: any;
|
35 | relative?: RelativeRoutingType;
|
36 | }): (event: GestureResponderEvent) => void;
|
37 |
|
38 |
|
39 |
|
40 | export declare function useHardwareBackButton(): void;
|
41 | export { useHardwareBackButton as useAndroidBackButton };
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function useDeepLinking(): void;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export declare function useSearchParams(defaultInit?: URLSearchParamsInit): [URLSearchParams, SetURLSearchParams];
|
52 | export type SetURLSearchParams = (nextInit?: URLSearchParamsInit | ((prev: URLSearchParams) => URLSearchParamsInit), navigateOpts?: NavigateOptions) => void;
|
53 | export type ParamKeyValuePair = [string, string];
|
54 | export type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | export declare function createSearchParams(init?: URLSearchParamsInit): URLSearchParams;
|