import { GeneratorCallback, ProjectConfiguration, Tree } from '@nx/devkit'; import { NormalizedLibraryClassGeneratorSchema, NormalizedProjectGeneratorSchema } from './schema'; /** Configuration for a project within an Nx CLI workspace. */ export type ProjectConfig = ProjectConfiguration; /** Parameters for creating an application project. */ export interface AppProjectOptions { projectName: string; directory?: string; tags?: string; } /** Parameters for creating a library project. */ export interface LibProjectOptions { projectName: string; importPath: string; } /** * Changes the build configuration to bundle all external dependencies into the output js file. */ export declare function changeBuildDependencyBundling(projectConfig: ProjectConfig): void; /** * Adds a `deploy` target to the project's configuration to allow deploying the controller to an orchestrator. */ export declare function addDeployTarget(projectConfig: ProjectConfig, options: NormalizedProjectGeneratorSchema): void; /** * Adds a `gen-crds` target to the library project's configuration. */ export declare function addGenCrdsTarget(projectConfig: ProjectConfig, options: NormalizedLibraryClassGeneratorSchema): void; /** * Creates a new application project. * * Throws an error if the project already exists. */ export declare function createAppProject(host: Tree, options: AppProjectOptions): Promise; /** * Creates a new library project. * * Throws an error if the project already exists. */ export declare function createLibProject(host: Tree, options: LibProjectOptions): Promise; /** * Gets the project's source root directory. */ export declare function getProjectSrcRoot(projectConfig: ProjectConfiguration): string;