1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { ResolvedUrl } from '../index';
|
15 | import { Result } from '../model/analysis';
|
16 | import { PackageRelativeUrl } from '../model/url';
|
17 | import { UrlLoader } from './url-loader';
|
18 |
|
19 |
|
20 |
|
21 | export declare class FsUrlLoader implements UrlLoader {
|
22 | root: string;
|
23 | constructor(root?: string);
|
24 | canLoad(url: ResolvedUrl): boolean;
|
25 | load(url: ResolvedUrl): Promise<string>;
|
26 | /**
|
27 | * If successful, result.value will be the filesystem path that we would load
|
28 | * the given url from.
|
29 | *
|
30 | * If unsuccessful, result.value will be an error message as a string.
|
31 | */
|
32 | getFilePath(url: ResolvedUrl): Result<string, string>;
|
33 | readDirectory(pathFromRoot: string, deep?: boolean): Promise<PackageRelativeUrl[]>;
|
34 | }
|