//#region packages/basic/string/toJsons.d.ts type ObjAny = Record; declare const TYPE_MARKERS: { CIRCULAR_REF: string; FUNCTION_REF: string; CODE_BLOCK: string; /**内置对象*/ SYMBOL: string; FUNCTION: string; UNDEFINED: string; DATE: string; REGEXP: string; NAN: string; BIGINT: string; MAP: string; SET: string; ARRAY_BUFFER: string; TYPED_ARRAY: string; DATA_VIEW: string; ERROR: string; URL: string; INFINITY: string; NEGATIVE_INFINITY: string; INT8_ARRAY: string; UINT8_ARRAY: string; UINT8_CLAMPED_ARRAY: string; INT16_ARRAY: string; UINT16_ARRAY: string; INT32_ARRAY: string; UINT32_ARRAY: string; FLOAT32_ARRAY: string; FLOAT64_ARRAY: string; BIGINT64_ARRAY: string; BIGUINT64_ARRAY: string; }; /** * 安全序列化函数(支持更多内置对象) */ declare function toJSONSStringify(obj: any, space?: number | string, filtrat?: string): string; /** * 安全反序列化函数(完整支持更多内置对象) */ declare function toJSONSParse(str: string, context?: ObjAny): T; type CodeBlock = { params: string[]; body: string; name?: string; }; /** * 序列化函数引用 */ declare function serializeFunctionRef(key: string): { [TYPE_MARKERS.FUNCTION_REF]: string; }; /** * 序列化代码块 */ declare function serializeCodeBlock(value: CodeBlock): { [TYPE_MARKERS.CODE_BLOCK]: CodeBlock; }; //#endregion export { toJSONSStringify as a, toJSONSParse as i, serializeCodeBlock as n, serializeFunctionRef as r, CodeBlock as t };