/** * @param path 路径 * @param interrupt 出错是否中断进程 * @returns */ declare const getJson: (path: string, interrupt: boolean) => T; /** * @param command 命令 这个utils内部用用吧,其他package就正常使用shelljs * @param silent 是否 隐藏脚本log * @returns */ declare const runShell: (command: string, options?: { silent: boolean; cwd: string; }) => string; /** * @param path * @returns */ declare const exists: (path: string) => boolean; /** * @param cwd * @returns */ declare const isGitRepo: (cwd: string) => boolean; /** 获取 try..catch 或 promise..catch 中的 unknown 的 error 的 message */ declare function getUnknowErrorMsg(error: unknown): string; declare function typedObjectKeys(obj: T): (keyof T)[]; export { exists, getJson, getUnknowErrorMsg, isGitRepo, runShell, typedObjectKeys };