export interface GitFileChange { path: string; status: "added" | "modified" | "deleted"; } export interface GitInfo { commit: string; branch: string; isRepo: boolean; } /** * Check if the current directory is a git repository */ export declare function isGitRepo(dir?: string): Promise; /** * Get current git commit hash */ export declare function getCurrentCommit(dir?: string): Promise; /** * Get current git branch */ export declare function getCurrentBranch(dir?: string): Promise; /** * Get git info for the current repository */ export declare function getGitInfo(dir?: string): Promise; /** * Get files changed since a specific commit */ export declare function getChangedFiles(fromCommit: string, patterns: string[], dir?: string): Promise; /** * Check if a file is ignored by git */ export declare function isGitIgnored(filePath: string, dir?: string): Promise; /** * Get the root directory of the git repository */ export declare function getGitRoot(dir?: string): Promise; /** * Convert patterns to be relative to git root if in a git repo */ export declare function normalizeGitPatterns(patterns: string[], dir?: string): Promise; //# sourceMappingURL=git.d.ts.map