/** * Git Service - Utility for git operations * @requirement FR-003, FR-004 - Git repository detection and file change detection * * Provides utilities for checking git repository status, detecting file changes, * and committing files. Used by task completion service for auto-commit feature. */ /** * Git Service - Static utility class for git operations */ export declare class GitService { /** * Check if current directory is a git repository * @param dir Optional directory to check (defaults to process.cwd()) * @returns true if git repository exists, false otherwise * @requirement FR-003 - Git repository detection */ static isGitRepo(dir?: string): Promise; /** * Check if file has uncommitted changes * @param filePath Path to file relative to git root * @returns true if file has uncommitted changes, false otherwise * @requirement FR-004 - File change detection */ static hasUncommittedChanges(filePath: string): Promise; /** * Stage file for commit * @param filePath Path to file relative to git root * @throws Error if git add fails * @requirement FR-001 - Auto-commit completion status */ static stageFile(filePath: string): Promise; /** * Commit staged files with message * @param message Commit message * @throws Error if git commit fails * @requirement FR-001, FR-005 - Auto-commit with proper message format */ static commitFiles(message: string): Promise; /** * Check if git command is available * @returns true if git is available, false otherwise * @requirement FR-003 - Git repository detection */ static isGitAvailable(): Promise; }