import { StructuredPatch, DiffLinesOptions } from '../types'; interface PatchCreationOptions extends Pick { context?: number; } type StructuredPatchCallback = (StructuredPatch: any) => void; interface StructuredPatchCallbackOption { callback: StructuredPatchCallback; } export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options: (PatchCreationOptions & StructuredPatchCallbackOption) | StructuredPatchCallback): undefined; export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options?: PatchCreationOptions): StructuredPatch; export declare function formatPatch(diff: StructuredPatch | StructuredPatch[]): string; type CreatePatchCallback = (string: any) => void; interface CreatePatchCallbackOption { callback: CreatePatchCallback; } export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options: (PatchCreationOptions & CreatePatchCallbackOption) | CreatePatchCallback): undefined; export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options?: PatchCreationOptions): string; export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options: (PatchCreationOptions & CreatePatchCallbackOption) | CreatePatchCallback): undefined; export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options?: PatchCreationOptions): string; export {};