import type { PackageJson } from '../types'; declare function getPackageInNodeModulesDir(cwd: string, packageName: string): string; /** * Rename the file name to underline to point * * e.g: `_npmrc` -> `.npmrc` * * @param {string} dirPath */ declare function renameHiddenTemplateFiles(dirPath: string): Promise; declare function mergeTemplateJsonIntoPackageJson(templateJsonPath: string, packageJsonPath: string): Promise; declare function mergeFieldsIntoPackageJson(packageJsonPath: string, fields: Record): Promise; declare function checkFileExists(filePath: string, { ignoreError }?: { ignoreError?: boolean; }): Promise; declare function getYamlConfigContent(configPath: string, { enableFileExistsCheck }?: { enableFileExistsCheck?: boolean; }): Promise; declare function updateYamlConfigContent(configPath: string, content: unknown, options?: { enableFileExistsCheck?: boolean; schemaComment?: string; }): Promise; declare function checkProjectFilesExists(currentWorkingDirectory: string, relativePath: string | string[], { ignoreError }?: { ignoreError?: boolean; }): Promise; declare function getPackageJsonContent(path: string): Promise; declare function getCliVersionByMetaPath(metaPath: string): Promise; export { renameHiddenTemplateFiles, getPackageInNodeModulesDir, getYamlConfigContent, getPackageJsonContent, getCliVersionByMetaPath, updateYamlConfigContent, mergeTemplateJsonIntoPackageJson, mergeFieldsIntoPackageJson, checkFileExists, checkProjectFilesExists, }; //# sourceMappingURL=file.d.ts.map