import type { RouterOptions } from "../../types.js"; export type Segment = { kind: "static"; key: string; } | { kind: "param"; name: string; } | { kind: "pattern"; source: string; parts: PatternPart[]; captureNames: string[]; signature: string; staticLiteralLength: number; regexParamCount: number; paramCount: number; matcher: RegExp; } | { kind: "wildcard"; name: string; segmentCount: number | null; }; export type ParsedSegment = Segment | { kind: "optional-param"; name: string; }; export type PatternPart = { kind: "static"; value: string; } | { kind: "param"; name: string; constraintSource: string | null; constraint: RegExp | null; }; export type PreparedPath = { rawSegments: string[]; }; export type PreparedLookupPath = string | { rawPathname: string; matchPathname: string; }; export declare function normalizeMethod(method: string): string; export declare function parseRoutePath(path: string, options: Required): ParsedSegment[]; export declare function normalizeRouteTemplate(path: string, options: Required): string; export declare function prepareMatchPath(path: string, options: Required): PreparedPath | null; export declare function prepareLookupPath(path: string, options: Required): PreparedLookupPath | null; export declare function splitPathSegments(path: string): string[]; export declare function stripQueryHash(path: string): string; export declare function normalizeTrailingSlash(path: string, ignoreTrailingSlash: boolean): string; export declare function normalizeSegmentKey(segment: string, caseSensitive: boolean): string; export declare function decodeSegment(segment: string): string | null; export declare function decodeSegmentRange(path: string, start: number, end: number): string | null;