import * as qs from 'query-string'; import { PathRecord, PartialPath, Path } from '../types'; export declare const trimTrailingSlashes: (path: string) => string; export declare const normalizeSlashes: (path: string) => string; export declare const joinPaths: (paths: string[]) => string; export declare const splitPath: (path: string) => string[]; export declare function normalizeBase(base: string): string; export declare function parseQuery(queryStr: string): qs.ParsedQuery; export declare function pathToString({ pathname, search, hash, query }: PartialPath, basename?: string): string; /** * Parses a string URL path into its separate pathname, search, and hash components. */ export declare function resolvePath(to: PathRecord, fromPathname?: string): Path; /** * Strips off the base from the beginning of a location.pathname in a non-case-sensitive way. * If the base does not match at the beginning, null will be returned. * * @param pathname - location.pathname * @param base - base to strip off */ export declare function stripBase(pathname: string, base: string): string | null;