/** * 缓存一个目录到指定的工具和版本下 * @param sourceDir 源目录 * @param toolName 工具名字 * @param toolVersion 工具版本 * @param osArch 系统架构, Optional * @returns {Promise} 缓存的目标目录 */ export declare function cacheDir(sourceDir: string, toolName: string, toolVersion: string, osArch?: string): Promise; /** * 缓存文件到指定工具和版本下. * @param sourceFile 源文件 * @param targetFile 目标文件 * @param toolName 工具名字 * @param toolVersion 工具版本 * @param osArch 系统架构,Optional * @returns {Promise} 缓存的目标目录 */ export declare function cacheFile(sourceFile: string, targetFile: string, toolName: string, toolVersion: string, osArch?: string): Promise; export declare function getToolCacheBaseDir(): string; export declare function getToolCacheDir(toolName: string): string; export declare function getToolVersionCacheDir(toolName: string, toolVersion: string, osArch?: string): string; export declare function getToolVersionCacheCompleteFilePath(toolName: string, toolVersion: string, osArch?: string): string;