/** * **Worklet compatible** * * Performs a deep equality check between two values. * * This function recursively compares two values, checking if they are equal. For objects, * it validates that both have the same keys and that each corresponding value is deeply equal. * For non-objects, it uses strict equality. * * @param obj1 - The first value to compare. * @param obj2 - The second value to compare. * @returns `true` if the values are deeply equal; otherwise, `false`. */ export declare function deepEqual(obj1: U, obj2: U): boolean; /** * **Worklet compatible** * * Performs a shallow equality check between two values. * * For non-objects, uses strict equality (===). For objects, checks that both have identical * keys and compares their values using `Object.is` without recursing into nested objects. * * Ideal for preventing re-renders due to top-level object recreation. * * @param obj1 - The first value to compare. * @param obj2 - The second value to compare. * @returns `true` if the values are shallowly equal; otherwise, `false`. */ export declare function shallowEqual(obj1: U, obj2: U): boolean; /** * Performs a deep equality check between two values, supporting objects, arrays, maps, sets, dates, regexps, array buffers, and more. * Copied from dequal@2.0.3 and fully typed for TypeScript. * @param foo - The first value to compare. * @param bar - The second value to compare. * @returns `true` if the values are deeply equal; otherwise, `false`. */ export declare function dequal(foo: unknown, bar: unknown): boolean; //# sourceMappingURL=equality.d.ts.map