/** * Git utilities for branch detection and repository operations */ /** * Check if a directory is a git repository */ export declare function isGitRepository(path: string): Promise; /** * Get current git branch */ export declare function getCurrentBranch(repoPath: string): Promise; /** * Get git HEAD commit hash */ export declare function getHeadCommit(repoPath: string): Promise; /** * Get list of all files tracked by git */ export declare function getTrackedFiles(repoPath: string): Promise; /** * Get modified files since last commit */ export declare function getModifiedFiles(repoPath: string): Promise; /** * Get untracked files */ export declare function getUntrackedFiles(repoPath: string): Promise; /** * Watch for branch changes */ export declare class GitBranchWatcher { private repoPath; private onBranchChange; private checkInterval; private currentBranch; private intervalId; constructor(repoPath: string, onBranchChange: (oldBranch: string | null, newBranch: string) => void, checkInterval?: number); /** * Start watching for branch changes */ start(): Promise; /** * Stop watching */ stop(): void; /** * Get current branch */ getCurrentBranch(): string | null; } //# sourceMappingURL=git-utils.d.ts.map