import { StructuredPatch } from '../types'; export interface ApplyPatchOptions { fuzzFactor?: number; autoConvertLineEndings?: boolean; compareLine?: (lineNumber: number, line: string, operation: string, patchContent: string) => boolean; } export declare function applyPatch(source: string, uniDiff: string | StructuredPatch | [StructuredPatch], options?: ApplyPatchOptions): string | boolean; export interface ApplyPatchesOptions extends ApplyPatchOptions { loadFile: (index: StructuredPatch, callback: (err: any, data: string) => void) => void; patched: (index: StructuredPatch, content: string, callback: (err: any) => void) => void; complete: (err?: any) => void; } export declare function applyPatches(uniDiff: string | StructuredPatch[], options: any): void;