UNPKG

advanced-patch-generator

Version:

Advanced patch manager using Xdelta for efficient patch creation and application with progress support, events, and error handling

39 lines 1.56 kB
import type { PatchAnalysisResult, PatchComparisonResult, PatchInfoResult, IPatchAnalyzer } from '../types/index.js'; /** * Utility class for analyzing patch files * @class PatchAnalyzer * @implements IPatchAnalyzer */ declare class PatchAnalyzer implements IPatchAnalyzer { /** * Analyzes a patch file and returns detailed information * @param patchFile - Path to the patch file * @returns Promise with patch analysis result */ analyzePatch(patchFile: string): Promise<PatchAnalysisResult>; /** * Compares two patch files and returns comparison metrics * @param patch1 - Path to first patch file * @param patch2 - Path to second patch file * @returns Promise with patch comparison result */ comparePatches(patch1: string, patch2: string): Promise<PatchComparisonResult>; /** * Gets basic information about a patch file * @param patchFile - Path to the patch file * @returns Promise with patch information result */ getPatchInfo(patchFile: string): Promise<PatchInfoResult>; /** * Formats bytes into human-readable format * @param bytes - Number of bytes * @returns Formatted string * @private */ private static formatBytes; static analyzePatch(patchFile: string): Promise<PatchAnalysisResult>; static comparePatches(patch1: string, patch2: string): Promise<PatchComparisonResult>; static getPatchInfo(patchFile: string): Promise<PatchInfoResult>; } export default PatchAnalyzer; //# sourceMappingURL=PatchAnalyzer.d.ts.map