import type { JsonArray, JsonObject, JsonValue } from './JsonObject.ts'; /** * Converts an array to a JSON-safe array, handling circular references and depth limits. * @param value - The array to convert. * @param cycleList - Tracks visited objects to detect circular references. * @param maxDepth - Maximum recursion depth before truncating. * @returns A JSON-safe array representation. */ export declare const toSafeJsonArray: (value: unknown[], cycleList?: unknown[], maxDepth?: number) => JsonArray; /** * Converts an object to a JSON-safe object, handling circular references and depth limits. * @param value - The object to convert. * @param cycleList - Tracks visited objects to detect circular references. * @param maxDepth - Maximum recursion depth before truncating. * @returns A JSON-safe object representation. */ export declare const toSafeJsonObject: (value: object, cycleList?: unknown[], maxDepth?: number) => JsonObject; /** * Converts an unknown value to a JSON-safe value, replacing circular references with '[Circular]' and * non-JSON types with descriptive placeholder strings. * @param value - The value to convert. * @param cycleList - Tracks visited objects to detect circular references. * @param maxDepth - Maximum recursion depth before truncating with '[MaxDepth]'. * @returns A JSON-safe representation of the value. */ export declare const toSafeJsonValue: (value: unknown, cycleList?: unknown[], maxDepth?: number) => JsonValue; /** * Converts a value to a pretty-printed JSON string, safely handling circular references and non-JSON types. * @param value - The value to serialize. * @param maxDepth - Maximum recursion depth. * @returns A formatted JSON string. */ export declare const toSafeJsonString: (value: unknown, maxDepth?: number) => string; /** * Converts a value to a JSON-safe representation, handling circular references and non-serializable types. * @param value - The value to convert. * @param maxDepth - Maximum recursion depth. * @returns A JSON-safe value. */ export declare const toSafeJson: (value: unknown, maxDepth?: number) => JsonValue; //# sourceMappingURL=toSafeJson.d.ts.map