/** * Git Diff Utilities * Centralized logic for filtering, cleaning, and processing git diffs. */ /** * Filters out noisy files from the git diff to save tokens and improve focus. * Logic: EXCLUDE if filename matches any pattern. * * @param fullDiff The raw git diff string * @param excludePatterns Optional list of patterns (strings or regex) to exclude if matched in the filename */ export declare function filterGitDiff(fullDiff: string, excludePatterns?: string[]): string; /** * Filters a unified git diff string to only include changes to specified files. * Logic: INCLUDE ONLY if filename matches allow list. * * @param fullDiff The raw git diff string * @param allowedFilePaths List of absolute or relative file paths to include * @param projectRoot Root directory to resolve relative paths against */ export declare function filterDiffByInclusion(fullDiff: string, allowedFilePaths: string[], projectRoot: string): string; /** * Checks if a file path should be excluded from lineage tracking. * Uses SYSTEM_EXCLUSION_PATTERNS to filter out noise files. * * @param filePath The file path to check (can be absolute or relative) * @returns true if the file should be excluded from lineage */ export declare function shouldExcludeFromLineage(filePath: string): boolean; //# sourceMappingURL=diff-utils.d.ts.map