/** * Shared, decoded-aware route pattern matching used by both the router * (`index.ts`) and the server-frame path (`ssr.ts`) so the * two never drift on segment semantics or parameter decoding. * * Patterns support `:name` segments, a bare mid-pattern `*` (one segment), and * a trailing `/**:name` catch-all. Static segments take priority over params, * which take priority over catch-alls — callers sort by that before matching. */ export interface ParsedPattern { segments: string[]; kinds: number[]; } export declare const parsePattern: (pattern: string) => ParsedPattern; /** * Match `segments` against a pathname. Returns raw (still-encoded) captured * params, or `null` when the path doesn't match — the caller decides whether to * decode via {@link safeDecode}. */ export declare const matchSegments: (segments: string[], pathname: string) => Record | null; /** Decode a route-param value, tolerating malformed percent-encoding. */ export declare const safeDecode: (value: string) => string;