/** * [WHO]: Provides getGitDiff(), getFileDiff(), getChangedFiles(), loadProjectRules() * [FROM]: Depends on node child_process/fs/path for local Git and project rule discovery * [TO]: Consumed by extensions/optional/simplify/index.ts for changed-file and rule context * [HERE]: extensions/optional/simplify/git-utils.ts - simplify extension Git and rule-loading helpers */ /** * Get list of changed files (staged + unstaged) * * @param cwd - Working directory * @returns Array of file paths, or empty array on error */ export declare function getChangedFiles(cwd: string): string[]; /** * Get diff for a specific file against HEAD * * @param cwd - Working directory * @param file - File path (relative to cwd) * @returns Diff string, or empty string on error */ export declare function getFileDiff(cwd: string, file: string): string; /** * Get combined diff string for all changed files * * @param cwd - Working directory * @returns Combined diff string */ export declare function getGitDiff(cwd: string): string; /** * Load project rules from common config files * * Checks for: * - CLAUDE.md * - AGENTS.md * - .cursor/rules * - .github/copilot-instructions.md * * @param cwd - Working directory * @returns Combined rules string (truncated per file to 2000 chars) */ export declare function loadProjectRules(cwd: string): string;