UNPKG

967 BTypeScriptView Raw
1/**
2* Calculates a path relative to a file.
3*
4* @param name The relative path.
5* @param file The file path.
6* @return The calculated path.
7*/
8export declare function relativeToFile(name: string, file: string): string;
9/**
10* Joins two paths.
11*
12* @param path1 The first path.
13* @param path2 The second path.
14* @return The joined path.
15*/
16export declare function join(path1: string, path2: string): string;
17/**
18* Generate a query string from an object.
19*
20* @param params Object containing the keys and values to be used.
21* @param traditional Boolean Use the old URI template standard (RFC6570)
22* @returns The generated query string, excluding leading '?'.
23*/
24export declare function buildQueryString(params?: Object, traditional?: boolean): string;
25/**
26* Parse a query string.
27*
28* @param queryString The query string to parse.
29* @returns Object with keys and values mapped from the query string.
30*/
31export declare function parseQueryString(queryString: string): Object;