/** * Git utilities for enhanced run summary. */ export interface CommitLogEntry { hash: string; title: string; } export interface FileDiffStat { path: string; added: number; removed: number; } /** * Get the current commit hash (HEAD). * * @param projectRoot - Root directory of the git repository * @returns Short commit hash, or null if not available */ export declare function getCurrentCommitHash(projectRoot: string): string | null; /** * Get diff stats between two commits. * * @param projectRoot - Root directory of the git repository * @param fromHash - Starting commit hash * @param toHash - Ending commit hash * @returns Array of file diff stats, or null if not available */ export declare function getDiffStats(projectRoot: string, fromHash: string, toHash: string): FileDiffStat[] | null; /** * Get the list of commits between two refs. * * @param projectRoot - Root directory of the git repository * @param fromHash - Starting commit hash (exclusive) * @param toHash - Ending commit hash (inclusive) * @returns Array of commit entries, or null if not available */ export declare function getRecentCommits(projectRoot: string, count?: number): CommitLogEntry[]; export declare function getCommitList(projectRoot: string, fromHash: string, toHash: string): CommitLogEntry[] | null;