import { Rule, SchematicContext, Tree } from "@angular-devkit/schematics"; import { ProjectDefinition, WorkspaceDefinition } from "@schematics/angular/utility/workspace"; export declare function readJsonInTree(host: Tree, path: string): T; export declare function updateJsonInTree(path: string, callback: (json: T, context: SchematicContext) => O): Rule; export declare function getProjectFromWorkspace(workspace: WorkspaceDefinition, projectName: string | undefined): ProjectDefinition; export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree; export declare function getProjectTargetOptions(project: ProjectDefinition, buildTarget: string): Record | undefined; export declare function getProjectMainFile(project: ProjectDefinition): string; /** * Whether the Angular module in the given path imports the specified module class name. */ export declare function hasNgModuleImport(tree: Tree, modulePath: string, className: string): boolean; export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: ProjectDefinition): void;