1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { FileRelativeUrl, PackageRelativeUrl } from '../index';
|
15 | import { ResolvedUrl } from '../model/url';
|
16 | import { FsUrlResolver } from './fs-url-resolver';
|
17 | export interface PackageUrlResolverOptions {
|
18 | packageDir?: string;
|
19 | componentDir?: string;
|
20 | host?: string;
|
21 | protocol?: string;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | export declare class PackageUrlResolver extends FsUrlResolver {
|
27 | readonly componentDir: string;
|
28 | private readonly resolvedComponentDir;
|
29 | constructor(options?: PackageUrlResolverOptions);
|
30 | protected modifyFsPath(path: string): string;
|
31 | relative(to: ResolvedUrl): PackageRelativeUrl;
|
32 | relative(from: ResolvedUrl, to: ResolvedUrl, _kind?: string): FileRelativeUrl;
|
33 | private relativeImpl;
|
34 | /**
|
35 | * If the given URL is a file url inside our dependencies (e.g.
|
36 | * bower_components) then return a resolved posix path to its file.
|
37 | * Otherwise return undefined.
|
38 | */
|
39 | private pathnameForComponentDirUrl;
|
40 | }
|