import { MatchResult } from '../utils/matchPath'; export type BaseMatchPathProps = { /** * Makes it so 'URL' needs to be exactly as the path * @default false */ exact?: boolean; /** * Turn 'route' into 'hash route' * @default false */ hash?: boolean; }; export type MatchPathProps = BaseMatchPathProps & { /** * Route path(s) * @default '*' */ path: string | string[]; /** * Route mandatory search params */ searchParams?: string | string[]; }; /** * Method to match `url` to `url` * * @param url {URL} - Current url. * @param matchPath {BaseMatchPathProps} * @param parentRoute {MatchResult} - Current route parent. */ export declare const matchRoute: (url: URL, { exact, hash, searchParams }: MatchPathProps, path: MatchPathProps["path"], base?: string) => MatchResult> | null; /** * Hook to match path to current `url`. * @returns null if it is a no match, otherwise returns {@link MatchResult} */ export declare const useMatchPath: (matchProps: MatchPathProps, matchResult?: MatchResult | null) => MatchResult | null;