import { ParsedDiff } from 'diff'; export interface DiffsGroupedByFilenames { oldFileName: string; newFileName: string; diffs: ParsedDiff[]; } export interface ParsePatchOptions { minContextLines?: number; } /** * Counts the number of hunk headers in a patch string * Hunk headers are lines that start with @@ and end with @@ * @param patch The patch text to analyze * @returns The number of hunk headers found */ export declare function countHunkHeaders(patch: string): number; export declare function parsePatch(_patch: string, options?: ParsePatchOptions): DiffsGroupedByFilenames[];