type PathSpecItem = { type: 'literal'; name: string; } | { type: 'group'; name?: string; prefix?: string; suffix?: string; } | { type: 'wildcard'; name?: string; }; export type PathSpec = readonly PathSpecItem[]; export declare function parsePathWithSlug(path: string): PathSpec; export declare function pathSpecAsString(pathSpec: PathSpec): string; export declare function getPathMapping(pathSpec: PathSpec, pathname: string): Record | null; export declare function pathSpecToRegExpSource(pathSpec: PathSpec): string; export {};