/** * Deeply clones an object or array, handling circular references. * * This function recursively copies all properties of the input value, * creating a new object or array. If the input contains circular references, * they are preserved in the clone using a WeakMap to track already-cloned objects. * * @param value - The value to deep clone (object, array, or primitive) * @param hash - (internal) WeakMap for tracking circular references * @returns A deep clone of the input value * * @example * const obj: any = { a: 1 } * obj.self = obj * const clone = deepClone(obj) * console.log(clone) // { a: 1, self: [Circular] } * console.log(clone !== obj) // true * console.log(clone.self === clone) // true */ export declare const deepClone: (value: T, hash?: WeakMap) => T; //# sourceMappingURL=deep-clone.d.ts.map