export interface ReplaceCommitMessageParams { /** 正则表达式字符串 */ reg: string; /** 替换字符串 */ replace: string; /** 正则表达式标志,如 i、g、m 等 */ flags?: string; /** 是否强制推送到远程仓库 */ push?: boolean; /** 远程仓库名称,默认为 origin */ remote?: string; /** 分支名称,默认为当前分支 */ branch?: string; } /** * 替换所有提交消息 * ⚠️ 警告:此操作会重写 Git 历史,请谨慎使用 */ export declare function replaceCommitMessage({ reg, replace, flags, push, remote, branch }: ReplaceCommitMessageParams): Promise;