1 | import type { Tree } from '@nrwl/devkit';
|
2 | import type * as ts from 'typescript';
|
3 | export declare function insertChange(host: Tree, sourceFile: ts.SourceFile, filePath: string, insertPosition: number, contentToInsert: string): ts.SourceFile;
|
4 | export declare function replaceChange(host: Tree, sourceFile: ts.SourceFile, filePath: string, insertPosition: number, contentToInsert: string, oldContent: string): ts.SourceFile;
|
5 | export declare function removeChange(host: Tree, sourceFile: ts.SourceFile, filePath: string, removePosition: number, contentToRemove: string): ts.SourceFile;
|
6 | export declare function insertImport(host: Tree, source: ts.SourceFile, fileToEdit: string, symbolName: string, fileName: string, isDefault?: boolean): ts.SourceFile;
|
7 | export declare function addGlobal(host: Tree, source: ts.SourceFile, modulePath: string, statement: string): ts.SourceFile;
|
8 | export declare function getImport(source: ts.SourceFile, predicate: (a: any) => boolean): {
|
9 | moduleSpec: string;
|
10 | bindings: string[];
|
11 | }[];
|
12 | export declare function replaceNodeValue(host: Tree, sourceFile: ts.SourceFile, modulePath: string, node: ts.Node, content: string): ts.SourceFile;
|
13 | export declare function addParameterToConstructor(tree: Tree, source: ts.SourceFile, modulePath: string, opts: {
|
14 | className: string;
|
15 | param: string;
|
16 | }): ts.SourceFile;
|
17 | export declare function addMethod(tree: Tree, source: ts.SourceFile, modulePath: string, opts: {
|
18 | className: string;
|
19 | methodHeader: string;
|
20 | body?: string;
|
21 | }): ts.SourceFile;
|
22 | export declare function findClass(source: ts.SourceFile, className: string, silent?: boolean): ts.ClassDeclaration;
|