UNPKG

641 BTypeScriptView Raw
1/** @hidden
2 * Removes leading and trailing slashes from a path.
3 *
4 * @param path A path to normalize, in POSIX format.
5 */
6export declare function normalizePath(path: string): string;
7/**
8 * Normalizes a given path and splits it into an array of segments.
9 *
10 * @param path A path to split, in POSIX format.
11 */
12export declare function pathParts(path: string): string[];
13/**
14 * Normalizes given paths and joins these together using a POSIX separator.
15 *
16 * @param base A first path segment, in POSIX format.
17 * @param child A second path segment, in POSIX format.
18 */
19export declare function joinPath(base: string, child: string): string;