/** * Handles serialization and deserialization of complex types that JSON.stringify/parse * natively lose (Date, Map, Set, RegExp, Error, Infinity, NaN, Buffer). */ export declare class Serializer { static serialize(data: unknown, space?: string | number): string; static deserialize(json: string): T; /** * Deep clone that preserves types better than JSON.parse(JSON.stringify(x)) * Uses structuredClone if available (Node 17+), otherwise falls back to serialization. */ static clone(data: T): T; private static replacer; private static reviver; } //# sourceMappingURL=Serializer.d.ts.map