/** * Custom JSON encoder to assist in the serialization of a wide range of objects. */ export declare class EventSerializer { private seen; /** * Serialize a value to its JSON-compatible representation. * @param obj - The object to serialize. * @returns The serialized representation. */ default(obj: any): any; /** * Encode an object to a JSON string. * @param obj - The object to encode. * @returns The JSON string representation. */ encode(obj: any): string; /** * Serialize a datetime to ISO format with timezone support. * @param date - The Date object to serialize. * @returns ISO format string with timezone. */ private serializeDatetime; /** * Check if a number is within JavaScript's safe integer range. * @param value - The integer value to check. * @returns True if the value is safe, false otherwise. */ private isJsSafeInteger; } /** * Safely serialize data to a JSON string. * @param inputData - The data to serialize. * @returns A JSON string representation of the data. */ export declare function serializeToStr(inputData: unknown): string; /** * Safely stringifies data to JSON, handling circular references by replacing * cycles with a placeholder string. * * @param obj - The data to stringify. * @param space - (Optional) Number of spaces for pretty-printing (same as JSON.stringify). * @returns A JSON string representation, or a fallback string on failure. */ export declare function safeStringify(obj: unknown, space?: number): string;