export type PathSpecificity = { catchAllSegmentCount: number; dynamicSegmentCount: number; staticSegmentCount: number; }; export declare function getPathSpecificity(path: string): PathSpecificity; /** * Orders route candidates from the most to the least specific: fewest catch-all segments first, then * fewest dynamic segments, then most static segments. Used so that a pathname resolves to the most * specific matching route instead of whichever route happens to be declared first. */ export declare function comparePathSpecificity(a: PathSpecificity, b: PathSpecificity): number; /** * Specificity of a route definition's path. A localized route is ranked by its most specific variant. */ export declare function getRouteSpecificity(path: string | Partial>): PathSpecificity;