UNPKG

1.82 kBTypeScriptView Raw
1import type { Hash, Location, Path, Pathname, Search, To } from "history";
2import { Action as NavigationType, parsePath, createPath } from "history";
3import type { MemoryRouterProps, NavigateProps, OutletProps, RouteProps, PathRouteProps, LayoutRouteProps, IndexRouteProps, RouterProps, RoutesProps } from "./lib/components";
4import { createRoutesFromChildren, renderMatches, MemoryRouter, Navigate, Outlet, Route, Router, Routes } from "./lib/components";
5import type { Navigator } from "./lib/context";
6import { LocationContext, NavigationContext, RouteContext } from "./lib/context";
7import type { NavigateFunction, NavigateOptions } from "./lib/hooks";
8import { useHref, useInRouterContext, useLocation, useMatch, useNavigationType, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes } from "./lib/hooks";
9import type { Params, PathMatch, PathPattern, RouteMatch, RouteObject } from "./lib/router";
10import { generatePath, matchPath, matchRoutes, resolvePath } from "./lib/router";
11export type { Hash, IndexRouteProps, LayoutRouteProps, Location, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, OutletProps, PathMatch, PathPattern, PathRouteProps, RouteMatch, RouteObject, RouteProps, RouterProps, RoutesProps, Navigator, Params, Path, Pathname, Search, To, };
12export { MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, createPath, createRoutesFromChildren, generatePath, matchPath, matchRoutes, parsePath, renderMatches, resolvePath, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, };
13/** @internal */
14export { NavigationContext as UNSAFE_NavigationContext, LocationContext as UNSAFE_LocationContext, RouteContext as UNSAFE_RouteContext, };