import type { MatchFilters, PathMatch, RouteDescription, SearchParams, SetSearchParams } from "./types.js"; export declare const mockBase = "http://sr"; export declare function normalizePath(path: string, omitSlash?: boolean): string; export declare function resolvePath(base: string, path: string, from?: string): string | undefined; export declare function invariant(value: T | null | undefined, message: string): T; export declare function joinPaths(from: string, to: string): string; export declare function extractSearchParams(url: URL): SearchParams; export declare function createMatcher(path: S, partial?: boolean, matchFilters?: MatchFilters): (location: string) => PathMatch | null; export declare function scoreRoute(route: RouteDescription): number; export declare function createMemoObject>(fn: () => T): T; export declare function mergeSearchString(search: string, params: SetSearchParams): string; export declare function expandOptionals(pattern: string): string[]; export declare function setFunctionName(obj: T, value: string): T;