import { normalizePathname } from './pathname'; export { normalizePathname }; export type PathConfig = { [key: string]: string | { [key: string]: string; }; }; export type PathMatch = { pathTemplate: string; sharedPath: string; }; export type PathMatcherNode = { staticSegments: Map; dynamicSegment?: PathMatcherNode; catchAllSegment?: PathMatcherNode; optionalCatchAllSegment?: PathMatcherNode; match?: PathMatch; }; export type PathMatcher = { root: PathMatcherNode; localizedRoot?: PathMatcherNode; defaultLocaleRoot?: PathMatcherNode; }; export type DynamicSegmentType = 'dynamic' | 'catch-all' | 'optional-catch-all'; /** Identifies the supported Next.js dynamic segment syntax. */ export declare function getDynamicSegmentType(segment: string): DynamicSegmentType | undefined; /** Splits a pathname without interpreting encoded literals as route syntax. */ export declare function getPathSegments(pathname: string): string[]; /** Builds a segment trie from pathname-to-shared-path entries. */ export declare function createPathMatcher(pathEntries: ReadonlyArray): PathMatcher; /** Creates matchers for localized paths and unprefixed default-locale paths. */ export declare function createPathToSharedPathMap(pathConfig: PathConfig, prefixDefaultLocale: boolean, defaultLocale: string): { pathToSharedPath: PathMatcher; defaultLocalePaths: PathMatcher; }; //# sourceMappingURL=createPathMatcher.d.ts.map