matchPath<ParamKey, Path>(pattern, pathname): PathMatch<ParamKey> | null
Performs pattern matching on a URL pathname and returns information about the match.