//#region src/safeJson.d.ts /** * JSON.stringify can throw if the value is circular or contains functions, this * function catches those errors and returns undefined * * @param value */ declare function safeJsonStringify(value: unknown): string | undefined; /** * JSON.parse can throw if the value is not valid JSON, this function catches * those errors and returns undefined * * @param value */ declare function safeJsonParse(value: string): unknown; //#endregion export { safeJsonParse, safeJsonStringify };