import { ReactNode } from 'react'; import { PreviousLocation } from './hooks.js'; import { RouteConfig } from './types.js'; export interface RouterProps { children: ReactNode; routes: RouteConfig[]; onNavigate?: (location: Location, routerState: { state?: any; skipTransition?: boolean; }, previous: PreviousLocation) => boolean | void; /** * Pass this to re-enable browser-native scroll restoration * instead of manually restoring scroll positions with the * RestoreScroll component. i.e. if you are not using RestoreScroll. */ nativeScrollRestoration?: boolean; basePath?: string; } export declare function Router({ children, routes, onNavigate, nativeScrollRestoration, basePath, }: RouterProps): import("react/jsx-runtime").JSX.Element;