/** * Deep-copies a value, preserving as much fidelity as practical: * * - Arrays, Sets, and Maps are reconstructed with their native types. * - Prototype chain is preserved (class instances stay `instanceof` * their class). * - Own string AND symbol keys are copied, including non-enumerable * properties and full descriptor attributes (writable, enumerable, * configurable). * - Accessor descriptors are snapshotted: the getter is invoked once * (inside `untrack` so reactive reads don't leak) and the result is * stored as data on the copy. The original accessor shape is lost — * copy returns a value snapshot, not a live recomputing view. * - Cycles are handled via the `seen` map. * - Frozen / sealed / non-extensible state is re-applied. * - Built-ins listed in `isMutationBlacklisted` (Date, RegExp, * HTMLElement, …) are returned by reference. * * @template T * @param {T} o * @returns {T} * @url https://pota.quack.uy/store/copy */ export function copy(o: T, seen?: Map): T; //# sourceMappingURL=copy.d.ts.map