import type { GitFileDiffResult } from "./types.js"; /** * 高效、安全地获取某次提交引入的变更 diff 内容。 * 此函数是只读的,并且其输出经过优化,以最大限度地减少 AI 的 token 消耗。 * * @param repoPath git 仓库的绝对路径。 * @param commitRef 要查询的 commit 引用 (例如 'HEAD', 'main', 或一个 commit hash)。 * @param filePaths (可选) 一个文件路径数组。如果提供,则只获取这些文件的 diff;否则获取该次提交中所有文件的 diff。 * @returns 一个 Promise,它解析为一个包含文件 diff 信息的数组。 */ export declare function gitCommitDiffs(repoPath: string, commitRef: string, filePaths?: string[]): Promise; //# sourceMappingURL=gitCommitDiffs.d.ts.map