/** * Utility to clean up patch files: * - Trims empty lines from the beginning and end of the patch * - Removes empty lines around headers (---, +++, @@) * - Updates line counts in @@ headers based on actual content * - Validates all line prefixes within hunks * - Verifies minimum number of context lines if specified * * @param patchContent - The patch string to clean * @param minContextLines - Minimum number of context lines required (lines starting with " " or "-") * @returns The cleaned patch string * @throws {PatchFormatError} When encountering invalid line prefixes within a hunk * @throws {InsufficientContextLinesError} When there are not enough context lines */ export declare function cleanPatch(patchContent: string, minContextLines?: number): string;