import { MatchLocation } from './RouterProvider.js'; import { AnyPathParams } from './route.js'; export interface Segment { type: 'pathname' | 'param' | 'wildcard'; value: string; } export declare function joinPaths(paths: Array): string; export declare function cleanPath(path: string): string; export declare function trimPathLeft(path: string): string; export declare function trimPathRight(path: string): string; export declare function trimPath(path: string): string; export declare function removeTrailingSlash(value: string, basepath: string): string; export declare function exactPathTest(pathName1: string, pathName2: string, basepath: string): boolean; interface ResolvePathOptions { basepath: string; base: string; to: string; trailingSlash?: 'always' | 'never' | 'preserve'; caseSensitive?: boolean; } export declare function resolvePath({ basepath, base, to, trailingSlash, caseSensitive, }: ResolvePathOptions): string; export declare function parsePathname(pathname?: string): Array; interface InterpolatePathOptions { path?: string; params: Record; leaveWildcards?: boolean; leaveParams?: boolean; decodeCharMap?: Map; } type InterPolatePathResult = { interpolatedPath: string; usedParams: Record; }; export declare function interpolatePath({ path, params, leaveWildcards, leaveParams, decodeCharMap, }: InterpolatePathOptions): InterPolatePathResult; export declare function matchPathname(basepath: string, currentPathname: string, matchLocation: Pick): AnyPathParams | undefined; export declare function removeBasepath(basepath: string, pathname: string, caseSensitive?: boolean): string; export declare function matchByPath(basepath: string, from: string, matchLocation: Pick): Record | undefined; export {};