export type PageSearchParams = Record; export type PageRouteParamNameValidationError = "empty" | "reserved"; export type PageRouteParamSegmentValidationErrorKind = PageRouteParamNameValidationError | "duplicate" | "duplicate-wildcard" | "star-wildcard"; export interface PageRouteParamSegmentValidationError { segment: string; name: string; error: PageRouteParamSegmentValidationErrorKind; } export declare function findBestPageRoute(routes: Iterable, pathname: string): T | undefined; export declare function pageRoutePathMatches(routePath: string, pathname: string): boolean; /** Compile the canonical Page route syntax to an anchored URL matcher. */ export declare function pageRoutePathToRegExp(routePath: string): RegExp; export declare function pageRoutePathShapeFromPath(routePath: string): string; export declare function normalizeRoutePathname(pathname: string): string; export declare function matchPageRouteParams(routePath: string, pathname: string): Record; export declare function getPageRouteParamNameValidationError(name: unknown): PageRouteParamNameValidationError | undefined; export declare function getPageRouteParamSegmentValidationError(routePath: string): PageRouteParamSegmentValidationError | undefined; export declare function isReservedPageRouteParamName(name: string): boolean; export declare function parsePageSearch(search: string): PageSearchParams; //# sourceMappingURL=page-route.d.ts.map