import { ReactNode } from 'react'; import { MatchPathProps } from '../../hooks/useMatchPath'; import { MatchResult } from '../../utils/matchPath'; export type BaseRouteProps = Omit & { /** * @default false */ index?: boolean; path?: MatchPathProps['path']; }; export type BasicRouteProps = BaseRouteProps & { children?: ReactNode; fallback?: ReactNode; }; export type IRouteProps = BasicRouteProps & { computedMatch?: MatchResult | null; }; export declare function useRouteMatch(props: BasicRouteProps): MatchResult | "NO_ROUTE" | null;