/** * Deeply clones a value while safely handling circular references. * Safely deep clone JSON-like data with circular references, and don’t crash. * * - Uses native `structuredClone` when available (fast & spec-compliant) * - Falls back to a custom deep clone implementation for older environments * * Supports: * - Objects, Arrays, Date * - Circular & shared references * * ❌ Fallback clone does NOT support: * - Map / Set * - RegExp, Error * - Functions, DOM nodes * * @typeParam T - Type of the value being cloned * @param value - The value to deep clone * @returns A deep clone of the input value * * @example * ```ts * const obj: any = { a: 1 }; * obj.self = obj; * * const cloned = safeDeepClone(obj); * cloned !== obj; // true * cloned.self === cloned; // true * ``` */ export declare const safeDeepClone: (value: T) => T; export { }