import { ReactElement } from 'react'; import { BaseRouteProps } from '../../components/route/RouteUtils'; import { SwitchRouteProps } from './useSwitchUtils'; export type UseSwitchProps = { children: Array> | ReactElement; }; /** * Returns the first children component with props `path`, `search`, `to/from` that matches the current location or without previous props. */ export declare const useSwitch: ({ children }: UseSwitchProps) => null | ReactElement;