/** * batch — fuzzy matching and edit application. * * Normalises trailing whitespace to allow inexact text matches, then applies * one or more edits to a file's content while preserving offsets. */ import type { EditReplacement } from "./constants.js"; export declare function normalizeToLF(text: string): string; export declare function restoreLineEndings(text: string, ending: string): string; export declare function detectLineEnding(content: string): string; export declare function stripBom(content: string): { bom: string; text: string; }; export declare function applyEdits(content: string, edits: EditReplacement[], filePath: string): { newContent: string; blocksChanged: number; }; export declare function expandTilde(inputPath: string): string; export declare function isWithinDirectory(child: string, parent: string): boolean; export declare function validatePath(inputPath: string, cwd: string): Promise<{ path: string; warning?: string; }>; export declare function levenshtein(a: string, b: string): number; //# sourceMappingURL=fuzzy-edit.d.ts.map