import type { CreatePagesConfig, RouteConfig } from '../base-types.js'; import type { PagePath } from '../create-pages-utils/inferred-path-types.js'; export type PathPattern = [PagePath] extends [never] ? string : PagePath; type AllowTrailingSlash = Path extends '/' ? Path : Path | `${Path}/`; type AllowPathDecorators = Path extends unknown ? AllowTrailingSlash | `${AllowTrailingSlash}?${string}` | `${AllowTrailingSlash}#${string}` | `?${string}` | `#${string}` : never; type RouteHref = RouteConfig extends { paths: infer UserPaths extends string; } ? AllowPathDecorators : string; export type RouteHrefForTest = RouteHref; declare const constructedHref: unique symbol; export type NormalizePath = string extends Path ? string : Path extends `${infer Segment}/${infer Rest}` ? NormalizePath : Path extends '' | `(${string}` ? Prefix extends '' ? '/' : Prefix : `${Prefix}/${Path}`; export type ConstructedHref = string & { readonly [constructedHref]: NormalizePath; }; export type NavigationHref = RouteHref | ConstructedHref; export declare function buildRouteHref(path: string, params?: Record): string; export {};