1 | import { AbsoluteFsPath, FileSystem, PathSegment, PathString } from './types';
|
2 | export declare function getFileSystem(): FileSystem;
|
3 | export declare function setFileSystem(fileSystem: FileSystem): void;
|
4 |
|
5 |
|
6 |
|
7 | export declare function absoluteFrom(path: string): AbsoluteFsPath;
|
8 |
|
9 |
|
10 |
|
11 | export declare function absoluteFromSourceFile(sf: {
|
12 | fileName: string;
|
13 | }): AbsoluteFsPath;
|
14 |
|
15 |
|
16 |
|
17 | export declare function relativeFrom(path: string): PathSegment;
|
18 |
|
19 |
|
20 |
|
21 | export declare function dirname<T extends PathString>(file: T): T;
|
22 |
|
23 |
|
24 |
|
25 | export declare function join<T extends PathString>(basePath: T, ...paths: string[]): T;
|
26 |
|
27 |
|
28 |
|
29 | export declare function resolve(basePath: string, ...paths: string[]): AbsoluteFsPath;
|
30 |
|
31 | export declare function isRoot(path: AbsoluteFsPath): boolean;
|
32 |
|
33 |
|
34 |
|
35 | export declare function isRooted(path: string): boolean;
|
36 |
|
37 |
|
38 |
|
39 | export declare function relative<T extends PathString>(from: T, to: T): PathSegment | AbsoluteFsPath;
|
40 |
|
41 |
|
42 |
|
43 | export declare function basename(filePath: PathString, extension?: string): PathSegment;
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare function isLocalRelativePath(relativePath: string): boolean;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | export declare function toRelativeImport(relativePath: PathSegment | AbsoluteFsPath): PathSegment | AbsoluteFsPath;
|