import type { ExtractRouteParams, RouteMatchResult } from '../../../types/svelteRouter'; type CompiledSegment = { kind: 'static'; value: string; } | { kind: 'param'; name: string; optional: boolean; } | { kind: 'wildcard'; }; type CompiledPattern = { segments: CompiledSegment[]; score: number; }; /** * Compile a `` pattern into segments + a specificity score. * Higher score = more specific (longer static prefix beats parameterised). */ export declare const comparePatterns: (a: { score: number; index: number; }, b: { score: number; index: number; }) => number; export declare const compilePattern: (pattern: string) => CompiledPattern; export declare const joinBasepath: (basepath: string, pattern: string) => string; export declare const matchPattern: (pattern: CompiledPattern, pathname: string) => RouteMatchResult>; export {};