import * as Bluebird from 'bluebird'; import * as lodash from 'lodash'; export declare const _Promise: typeof Bluebird; /**lodash */ export declare const _: lodash.LoDashStatic; /** * json美化 */ export declare function stringify(obj: any, options?: {}): string; /** * 读取用户输入 */ export declare function prompt(message: any, defaultValue?: any): Promise; /** * 从根节点引用文件 */ export declare function requireRoot(...paths: any[]): any; /** * 从程序运行目录加载文件 */ export declare function requireCwd(...paths: any[]): any; /** * 程序终止 */ export declare function exit(): void; /** * 确认提示 */ export declare function confirm(describe: any): Promise; /** * 执行shell命令 */ export declare function exec(cmd: string, opt?: any): any; /** * 美化时间毫秒输出 */ export declare function prettyMs(ms: number): any; export interface Task { action(...params: any[]): any; name: string; } export declare function runTasks(tasks: Array, params: any): Promise;