import { JSX } from 'react'; import { RedirectProps } from '../../components'; import { NavigateProps } from '../../components/navigate/Navigate'; import { BaseRouteProps } from '../../components/route/RouteUtils'; export type SwitchRouteProps = BaseRouteProps | NavigateProps | RedirectProps; /** * Checks if the given props are related to navigation or redirection. * @param props - The props to check. * @returns `true` if the props contain a `to` attribute indicating navigation or redirection. */ export declare const isNavigateOrRedirect: (props: NavigateProps | RedirectProps) => boolean; /** * Matches the current URL against the given route props to determine if it should render the component. * @param url - The current URL. * @param props - The route props to match. * @param base - The base path for the route. * @returns The match result if the route matches, otherwise `null`. * @throws Error if the props are invalid in development mode. */ export declare const getMatchFromProps: (url: URL, props: SwitchRouteProps, base: string | undefined) => import('../../utils/matchPath').MatchResult> | null; export declare function isIndexRoute(props: BaseRouteProps, indexRoute: JSX.Element | null, getNavigate: (to: string) => { component: JSX.Element; }): JSX.Element | null;