import { FileContents, FileDiffMetadata } from "../types.js";
import { CreatePatchOptionsNonabortable } from "diff";

//#region src/utils/parseDiffFromFile.d.ts

/**
 * Parses a diff from two file contents objects.
 *
 * If both `oldFile` and `newFile` have a `cacheKey`, the resulting diff will
 * automatically get a combined cache key in the format `oldKey:newKey`.
 */
declare function parseDiffFromFile(oldFile: FileContents, newFile: FileContents, options?: CreatePatchOptionsNonabortable, throwOnError?: boolean): FileDiffMetadata;
//#endregion
export { parseDiffFromFile };
//# sourceMappingURL=parseDiffFromFile.d.ts.map