export interface IConfig { /** 用户自定义文件的路径 */ configPath?: string; /** 根目录,默认为当前执行目录 */ baseDir?: string; /** 是否打印调试信息 */ debug?: boolean; /** 开启静默模式,只打印必要的信息 */ silent?: boolean; force?: boolean; /** cm 命令相关的配置 */ commit?: { /** commit 后是否执行 pull */ pull?: boolean; /** 是否执行 push 推送 */ push?: boolean; /** git commit --amend 模式,即覆盖前一条提交,不建议写在配置文件中 */ amend?: boolean; /** 提交时间 */ date?: string; /** 提交注释 */ message?: string; /** 是否跳过 git hook */ noVerify?: boolean; /** 提交注释的验证规则,不符合规则的提交会被阻止 */ messageReg?: RegExp; }; run?: { /** 要执行的命令组 */ cmds?: Record string))[] | ((changed: string[], unknownArgs: string[]) => string[]); }>; }; } export declare const config: IConfig; /** * 获取配置信息 */ export declare function getConfig(options?: IConfig, useCache?: boolean): Promise;