import type { CompilerOptions } from 'typescript'; export declare function getExistFile({ cwd, files, returnRelative, }: { cwd: string; files: string[]; returnRelative?: boolean; }): string | void; /** * 检查是否存在 tsconfig * @param cwd */ export declare function checkTSConfigIsExist(cwd?: string): boolean; export declare function tryDefault(obj: any): any; /** * Parses values of the form "$=jQuery,React=react" into key-value object. */ export declare function parseMappingArgument(globalStrings: string, processValue?: (v: string, k: string) => string[] | string | void): {}; export declare function getTsConfigPath(cwd: string, rootPath?: string): string; /** * parsed tsconfig */ export declare function getParsedTSConfig(cwd: string, rootPath?: string): CompilerOptions; /** * 获取包和版本号 */ export declare function getNodeModulePKG(moduleName: string): { default: T | undefined; version?: string; };