import type { RouteParams } from '../create-pages-utils/inferred-path-types.js'; import type { PathPattern } from './build-route-href.js'; /** * Match a concrete pathname against a route path and return its params, or * null when the pathname does not match. This is the inverse of href construction: * route groups are stripped, the existing matcher decides the match, and each * matched segment is decoded once. The pathname must be the encoded form stored * by the router (e.g. useRouter().path); a pre-decoded path would double-decode * values containing "%". Malformed percent-encoding yields null rather than * throwing, since this runs during render. Catch-all matching follows the * router: a prefixed terminal catch-all (/docs/[...path]) does not match its * base (/docs), while a root catch-all (/[...path]) matches / as { path: [] }. */ export declare function matchRouteParams(path: Path, pathname: string): RouteParams | null;