import { UrlPattern } from './getUrlPattern'; type MatchProps = UrlPattern & { currentPath?: string; paths?: string[]; }; export type MatchResult = Record> = { /** * Check if URL for current route was changed */ checkNewVersion: (url: URL) => boolean; /** * If URL pattern is exact */ exact?: boolean; /** * Get current route params */ getParams: () => Params; /** * If current route is hashed */ hash: boolean; /** * Current route path (merged with previous path's) */ path: string; /** * All possible paths for the route */ paths?: string[]; /** * Current route search */ search: string; /** * Unique id for route. (prevents routes from rendering again if nothing changed) */ unique: string; /** * Route URL */ url?: URL; }; /** * Method to match href to {@link MatchProps path} * @param _href {string} * @param matchProps {@link MatchProps} - props to define the route */ export declare function matchPath = Record>(url: URL, { baseURL, exact, hash, path, paths }: MatchProps): MatchResult | null; export {};