1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { PackageRelativeUrl, ScannedImport } from '../index';
|
15 | import { FileRelativeUrl, ResolvedUrl } from '../model/url';
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare abstract class UrlResolver {
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | abstract resolve(url: PackageRelativeUrl): ResolvedUrl | undefined;
|
31 | abstract resolve(baseUrl: ResolvedUrl, url: FileRelativeUrl, scannedImport?: ScannedImport): ResolvedUrl | undefined;
|
32 | abstract relative(to: ResolvedUrl): PackageRelativeUrl;
|
33 | abstract relative(from: ResolvedUrl, to: ResolvedUrl, kind?: string): FileRelativeUrl;
|
34 | protected getBaseAndUnresolved(url1: PackageRelativeUrl | ResolvedUrl, url2?: FileRelativeUrl): [ResolvedUrl | undefined, FileRelativeUrl | PackageRelativeUrl];
|
35 | protected simpleUrlResolve(baseUrl: ResolvedUrl, url: FileRelativeUrl | PackageRelativeUrl, defaultProtocol: string): ResolvedUrl;
|
36 | protected simpleUrlRelative(from: ResolvedUrl, to: ResolvedUrl): FileRelativeUrl;
|
37 | protected brandAsFileRelative(url: string): FileRelativeUrl;
|
38 | protected brandAsPackageRelative(url: string): PackageRelativeUrl;
|
39 | protected brandAsResolved(url: string): ResolvedUrl;
|
40 | }
|