import RouteRecognizer from 'route-recognizer'; import type { ReactNode } from 'react'; interface Route { name: string; path: string; areas: Record; widths: Record; } type LocationWithQuery = Location & { query?: Record; }; interface Match { name: string; path: string; areas: Record; widths: Record; query?: Record; params?: Record; } export type BeforeNavigate = (arg: { path: string; query: Record; }) => { path: string; query: Record; }; interface Config { pathArg: string; beforeNavigate?: BeforeNavigate; } export interface NavigationOptions { transition?: string; state?: Record; replace?: boolean; } export declare const ConfigContext: import("react").Context; export declare function useLocation(): Match; export declare function useHistory(): { navigate: (rawPath: string, options?: NavigationOptions) => Promise; back: () => void; invalidate: () => void; }; export default function useMatch(location: LocationWithQuery, matcher: RouteRecognizer, pathArg: string, matchResolverArgs: Record): Match | undefined; export declare function RouterProvider({ routes, pathArg, beforeNavigate, children, matchResolverArgs, }: { routes: Route[]; pathArg: string; beforeNavigate?: BeforeNavigate; children: React.ReactNode; matchResolverArgs: Record; }): import("react").JSX.Element | null; export {}; //# sourceMappingURL=router.d.ts.map