import { TargetConfiguration, Tree } from '@nx/devkit'; import { type ConfigurationSchema } from '../generators/configuration/schema'; import { type Framework } from '../generators/init/schema'; export type Target = 'build' | 'serve'; export type TargetFlags = Partial>; export type UserProvidedTargetName = Partial>; export type ValidFoundTargetName = Partial>; export declare function findExistingTargetsInProject(targets: { [targetName: string]: TargetConfiguration; }, userProvidedTargets?: UserProvidedTargetName): { validFoundTargetName: ValidFoundTargetName; projectContainsUnsupportedExecutor: boolean; userProvidedTargetIsUnsupported: TargetFlags; alreadyHasNxRspackTargets: TargetFlags; }; export declare function addOrChangeBuildTarget(tree: Tree, options: ConfigurationSchema, target: string): void; export declare function addOrChangeServeTarget(tree: Tree, options: ConfigurationSchema, target: string): void; export declare function writeRspackConfigFile(tree: Tree, options: ConfigurationSchema, stylePreprocessorOptions?: { includePaths?: string[]; }): void; export declare function deleteWebpackConfig(tree: Tree, projectRoot: string, webpackConfigFilePath?: string): void; export declare function moveAndEditIndexHtml(tree: Tree, options: ConfigurationSchema, buildTarget: string): void; export declare function normalizeViteConfigFilePathWithTree(tree: Tree, projectRoot: string, configFile?: string): string; export declare function getViteConfigPathForProject(tree: Tree, projectName: string, target?: string): string; export declare function handleUnsupportedUserProvidedTargets(userProvidedTargetIsUnsupported: TargetFlags, userProvidedTargetName: UserProvidedTargetName, validFoundTargetName: ValidFoundTargetName, framework: Framework): Promise; export declare function handleUnknownExecutors(projectName: string): Promise; export declare function determineFrameworkAndTarget(tree: Tree, options: ConfigurationSchema, projectRoot: string, targets: { [targetName: string]: TargetConfiguration; }): { target: 'node' | 'web'; framework?: Framework; }; export declare function determineMain(tree: Tree, options: ConfigurationSchema): string; export declare function determineTsConfig(tree: Tree, options: ConfigurationSchema): string; //# sourceMappingURL=generator-utils.d.ts.map