UNPKG

576 BTypeScriptView Raw
1export declare class FileHandler {
2 filePath: string;
3 private _content;
4 private importModuleRE;
5 dirPath: string;
6 constructor(filePath: string);
7 readonly content: string;
8 private resolveToFile(validPath);
9 private getModuleNameFromImportStatement(statement);
10 private getImporteeFiles(excludeFrom);
11 getExternalModules(): string[];
12 getImporteeNames(): string[];
13 setContent(content: string): void;
14 copyTo(destFilePath: string): void;
15 hasImporters(): boolean;
16 getImportees(excludeFrom: string[]): Promise<FileHandler[]>;
17}