//#region src/deepEqual.d.ts /** * Deep equality comparison between two values * * Object keys with `undefined` values are ignored, following JSON semantics: * `deepEqual({ a: undefined }, {})` is `true` * * @example * ```ts * deepEqual({a: 1}, {a: 1}) // true * deepEqual({a: 1}, {a: 2}) // false * deepEqual({a: 1, b: undefined}, {a: 1}) // true * deepEqual([1, {b: 2}], [1, {b: 2}]) // true * deepEqual(new Map([['a', 1]]), new Map([['a', 1]])) // true * deepEqual(new Set([1, 2]), new Set([1, 2])) // true * ```; * * @param foo First value to compare * @param bar Second value to compare * @param maxDepth Maximum comparison depth (default: 20) * @returns True if values are deeply equal, false otherwise */ declare function deepEqual(foo: any, bar: any, maxDepth?: number): boolean; declare function deepEqualWithMaxDepth(maxDepth: number): (foo: any, bar: any) => boolean; //#endregion export { deepEqual, deepEqualWithMaxDepth };