import type { ProjectPluginConfig, MajorChange } from '@ones-open/cli-utils'; import type { AddCLIOptionsSchema, PackageJson } from '@ones-open/cli-utils'; import type { ListrTask } from 'listr'; type TargetType = 'ability' | 'module' | 'sub-module' | 'event'; type AddCommandRawInputParams = { target: TargetType | string; } & AddCLIOptionsSchema; type Dependencies = PackageJson['dependencies']; interface AddCommandInitialAnswer { target: TargetType; targetName?: string; targetVersion?: string; optional?: boolean; } interface AddTasksGetter { (params: { initialAnswer: AddCommandInitialAnswer; pluginConfigContent: ProjectPluginConfig; currentWorkingDirectory: string; }): Promise[]>; } declare function validateAddCommandTargetingType({ target }: AddCommandRawInputParams): Promise; declare function validateProjectCanExecuteAddCommand(currentWorkingDirectory?: string): Promise; declare function getAddCommandInitialAnswer(params: AddCommandRawInputParams): Promise; declare function mergeAndCheckDependency(pluginDependencies: Dependencies, templateDependencies: Dependencies): { mergedDependency: { [x: string]: string; }; majorChanges: MajorChange[]; shouldUpdateDependency: boolean; }; export { validateAddCommandTargetingType, validateProjectCanExecuteAddCommand, getAddCommandInitialAnswer, mergeAndCheckDependency, }; export type { AddCommandRawInputParams, AddCommandInitialAnswer, AddTasksGetter, TargetType }; //# sourceMappingURL=common.d.ts.map