import { WorkspaceDefinition } from '@angular-devkit/core/src/workspace'; import { Rule, Tree } from '@angular-devkit/schematics'; import * as ts from 'typescript'; import { ProjectDefinition, TargetDefinition } from './workspace'; /** * @param host - the Tree object of the project * @param path - the url of your file * @returns the file by url */ export declare function getSourceFile(host: Tree, path: string): ts.SourceFile; /** * @param workspace * @param projectName * @returns the project by projectName */ export declare function getProject(workspace: WorkspaceDefinition, projectName: string): ProjectDefinition | undefined; /** * To get the default project when the user doesn't define the project * @param workspace * @returns the default project */ export declare function getDefaultProjectName(workspace: WorkspaceDefinition): string; /** *To get the project's names from the workspace. * @param workspace * @returns the Project's name list. */ export declare function getProjectNames(workspace: WorkspaceDefinition): string[]; export declare function getProjectsIterator(workspace: WorkspaceDefinition): IterableIterator<[string, import("@angular-devkit/core/src/workspace").ProjectDefinition]>; /** * @param project * @returns the target definition */ export declare function getBuildTarget(project: ProjectDefinition): TargetDefinition; /** * add an import to the imports section of a module, if you already has the import it'll be skipped. * @param tree * @param bootstrapModuleDestinyPath - the path of the destiny module, for example: 'src/app/app.module.ts' * @param dependencyPath - the path of the import, for example: `'@angular/common/http'` * @param dependencyName - the name of the import, for example: `HttpClientModule` * @param addToMetadataField - when you don't want to add the import to the imports sections. */ export declare function addDependencyToModule(tree: Tree, bootstrapModuleDestinyPath: string, dependencyPath: string, dependencyName: string, addToMetadataField?: boolean): void; export declare function createEmptyFolder(path: string): Rule; export declare function getJsonFile(tree: Tree, path: string): T; export declare function getClientBuild(tree: Tree, projectName: string): Promise;