//#region src/patcher.d.ts interface Patch { name: string; description: string; pattern: Buffer; replacement: Buffer; variants?: Array<{ pattern: Buffer; replacement: Buffer; }>; semanticMatcher?: (content: string) => SemanticPatchMatch[]; regexPattern?: RegExp; regexReplacement?: string | ((match: string) => string); alreadyPatchedRegexPattern?: RegExp; skipIfAnySucceeded?: string[]; suppressCheckUnlessFound?: boolean; } interface SemanticPatchMatch { charIndex: number; match: string; replacement: string; } interface PatchOptions { inputPath: string; outputPath?: string; patches: Patch[]; dryRun?: boolean; backup?: boolean; verbose?: boolean; } interface PatchResult { name: string; found: number; positions?: number[]; success: boolean; alreadyPatched?: boolean; hidden?: boolean; skipped?: boolean; } interface PatchDroidResult { success: boolean; dryRun?: boolean; results: PatchResult[]; outputPath?: string; noPatchNeeded?: boolean; patchedCount?: number; } declare function patchDroid(options: PatchOptions): Promise; //#endregion //#region src/alias.d.ts interface CreateAliasResult { aliasPath: string; binaryPath: string; immediate?: boolean; } declare function createAlias(patchedBinaryPath: string, aliasName: string, verbose?: boolean): Promise; declare function removeAlias(aliasName: string): Promise; declare function listAliases(): Promise; interface ReplaceOriginalResult { originalPath: string; backupPath: string; } declare function replaceOriginal(patchedBinaryPath: string, originalPath: string, verbose?: boolean): Promise; declare function restoreOriginal(originalPath: string): Promise; //#endregion export { type CreateAliasResult, type Patch, type PatchDroidResult, type PatchOptions, type ReplaceOriginalResult, createAlias, listAliases, patchDroid, removeAlias, replaceOriginal, restoreOriginal }; //# sourceMappingURL=index.d.mts.map