1 | import * as dependentFilesUtils from './get-dependent-files';
|
2 | import { Change } from './change';
|
3 | import { Host } from '@angular-cli/ast-tools';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class ModuleResolver {
|
9 | oldFilePath: string;
|
10 | newFilePath: string;
|
11 | rootPath: string;
|
12 | constructor(oldFilePath: string, newFilePath: string, rootPath: string);
|
13 | /**
|
14 | * Changes are applied from the bottom of a file to the top.
|
15 | * An array of Change instances are sorted based upon the order,
|
16 | * then apply() method is called sequentially.
|
17 | *
|
18 | * @param changes {Change []}
|
19 | * @param host {Host}
|
20 | * @return Promise after all apply() method of Change class is called
|
21 | * to all Change instances sequentially.
|
22 | */
|
23 | applySortedChangePromise(changes: Change[], host?: Host): Promise<void>;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 | isRelativeImport(importClause: dependentFilesUtils.ModuleImport): boolean;
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | resolveDependentFiles(): Promise<Change[]>;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 | resolveOwnImports(): Promise<Change[]>;
|
45 | }
|