import { Tree } from '@angular-devkit/schematics'; import * as ts from 'typescript'; export declare function insertBeforeLastElement(host: Tree, filePath: string, componentToAdd: string): void; export declare function insertAfterFirstElement(host: Tree, filePath: string, componentToAdd: string): void; /** * Adds a module import */ export declare function addImportToFile(host: Tree, fileToEdit: string, symbolName: string, moduleName: string, isDefault?: boolean): Tree; /** * Adds a file import */ export declare function addFileImportToFile(host: Tree, modulePath: string, fileNameToAdd: string, addEmptyLine?: boolean, patternToRemove?: RegExp): Tree; /** * Determine if an import already exists. */ export declare function findFileImport(source: ts.SourceFile, fileName: string, patternToRemove?: RegExp): ts.Node | undefined; /** * Determine if an import already exists. */ export declare function findModuleImport(source: ts.SourceFile, classifiedName: string, importPath: string): ts.Node | undefined;