import { O as Options } from "./packem_shared/types.d-CXh0cdsD.js"; export type { H as Handlers, S as State } from "./packem_shared/types.d-CXh0cdsD.js"; /** * Deep-mutable mirror of `T`: recursively strips `readonly` modifiers so the * returned clone is fully writable. This is the return type of {@link deepClone} * and {@link createDeepClone}, exported (at the end of the file) because it * appears in their public signatures. * @template T - The type to make deeply writable. */ type DeepReadwrite = T extends object | [] ? { -readonly [P in keyof T]: DeepReadwrite } : T; /** * Function that creates a deep clone of an object or array. * @template T - The type of the original data. * @param originalData The original data to be cloned. It uses the generic parameter `T`. * @param options Optional. The cloning options. Type of this parameter is `Options`. * @returns The deep cloned data, typed as a deep-mutable mirror of `T`. */ declare const deepClone: (originalData: T, options?: Options) => DeepReadwrite; /** * Create a pre-configured deep-clone function (à la fast-copy's `createCopier`). * * The handler table is resolved once, so the returned function avoids the per-call * options/handler resolution overhead — useful in hot loops cloning many values * with the same configuration. * @param options The cloning options applied to every call of the returned function. * @returns A `deepClone`-compatible function bound to the resolved options. */ declare const createDeepClone: (options?: Options) => (originalData: T) => DeepReadwrite; export { type DeepReadwrite, type Options, createDeepClone, deepClone };