UNPKG

713 BTypeScriptView Raw
1import { LocationSegments } from '../global/interfaces';
2export declare const hasBasename: (path: string, prefix: string) => boolean;
3export declare const stripBasename: (path: string, prefix: string) => string;
4export declare const stripTrailingSlash: (path: string) => string;
5export declare const addLeadingSlash: (path: string) => string;
6export declare const stripLeadingSlash: (path: string) => string;
7export declare const stripPrefix: (path: string, prefix: string) => string;
8export declare const parsePath: (path: string) => LocationSegments;
9export declare const createPath: (location: LocationSegments) => string;
10export declare const parseQueryString: (query: string) => {
11 [key: string]: any;
12};