/** * Async generator that yields commit SHAs one at a time using git plumbing commands. * Uses git rev-list --all to get all commits reachable from any ref. * * @param gitDir Optional path to git directory (defaults to current repo) * @returns Async generator yielding commit SHA hashes */ export declare function getAllCommits(gitDir?: string): AsyncGenerator; /** * Async function to get commit details using git cat-file (plumbing command) * * @param commitSha The commit SHA to inspect * @param gitDir Optional path to git directory * @returns Promise resolving to raw commit object content */ export declare function getCommitDetails(commitSha: string, gitDir?: string): Promise; /** * Async function to get diff between commit and its parent(s) using plumbing commands * * @param commitSha The commit SHA to diff * @param gitDir Optional path to git directory * @returns Promise resolving to raw diff output */ export declare function getCommitDiff(commitSha: string, gitDir?: string): Promise; /** * Get file contents before and after a specific commit * * @param filePath The path to the file relative to repository root * @param commitSha The commit SHA to check * @param gitDir Optional path to git directory * @returns Promise<[beforeContents, afterContents]> Tuple of file contents before and after the commit */ export declare function getFileContentsBeforeAfter(filePath: string, commitSha: string, gitDir?: string): Promise<[string, string]>;