// biome-ignore lint/suspicious/noExplicitAny: Third-party type definitions for 'diff' library
declare module "diff" {
	export function diffChars(oldStr: string, newStr: string): unknown[];
	export function diffWords(oldStr: string, newStr: string): unknown[];
	export function diffWordsWithSpace(oldStr: string, newStr: string): unknown[];
	export function diffLines(oldStr: string, newStr: string): unknown[];
	export function diffTrimmedLines(oldStr: string, newStr: string): unknown[];
	export function diffSentences(oldStr: string, newStr: string): unknown[];
	export function diffCss(oldStr: string, newStr: string): unknown[];
	export function diffJson(oldObj: unknown, newObj: unknown): unknown[];
	export function createTwoFilesPatch(
		oldFileName: string,
		newFileName: string,
		oldStr: string,
		newStr: string,
		oldHeader?: string,
		newHeader?: string,
		options?: unknown,
	): string;
	export function createPatch(
		fileName: string,
		oldStr: string,
		newStr: string,
		oldHeader?: string,
		newHeader?: string,
		options?: unknown,
	): string;
	export function applyPatch(
		oldStr: string,
		uniDiff: string,
		options?: unknown,
	): string;
	export function applyPatches(uniDiff: string, options?: unknown): void;
	export function parsePatch(diffStr: string, options?: unknown): unknown[];
	export function convertChangesToDMP(changes: unknown[]): unknown[];
	export function convertChangesToXML(changes: unknown[]): string;
	export function canonicalize(
		obj: unknown,
		stack: unknown[],
		replacementStack: unknown[],
	): unknown;
}
