import type { GeneratorContext } from '@modern-js/codesmith'; import { Solution } from '@modern-js/generator-common'; export * from './utils'; export { canUseNpm, canUsePnpm, canUseYarn, } from '@modern-js/codesmith-utils/npm'; export { fs } from '@modern-js/codesmith-utils/fs-extra'; export { ora } from '@modern-js/codesmith-utils/ora'; export { semver } from '@modern-js/codesmith-utils/semver'; export { execa } from '@modern-js/codesmith-utils/execa'; export { chalk } from '@modern-js/codesmith-utils/chalk'; export { i18n } from './locale'; export declare function getPackageVersion(packageName: string, registryUrl?: string): Promise; export declare function getModernVersion(solution: Solution, registry?: string, distTag?: string): Promise; export declare function getModernPluginVersion(solution: Solution, packageName: string, options?: { cwd?: string; registry?: string; distTag?: string; }): Promise; export declare function getPackageManagerText(packageManager: 'pnpm' | 'yarn' | 'npm'): string; export declare function isTsProject(appDir: string): boolean; export declare function getPackageObj(context: GeneratorContext): Promise; export declare function getAllPackages(appDir: string): string[]; export declare function validatePackageName(value: string, packages: string[], options: { isMonorepoSubProject: boolean; }): { success: boolean; error: string; } | { success: boolean; error?: undefined; }; export declare function validatePackagePath(value: string, projectDir: string, options?: { isMwa?: boolean; }): { success: boolean; error: string; } | { success: boolean; error?: undefined; }; export declare function getModuleProjectPath(packagePath: string, isMonorepoSubProject: boolean, isLocalPackages: boolean): string; export declare function getMWAProjectPath(packagePath: string, isMonorepoSubProject: boolean): string; export declare function getModernConfigFile(appDir: string): Promise<"modern.config.ts" | "modern.config.js">;