/** * Converts a value to a JSON string using `JSON.stringify`. * @param {any} value The value to serialize. * @param {number|string} indent Number of spaces (or a string) for indentation. Defaults to `0` (no formatting). * @returns {string|undefined} The JSON string, or `undefined` if the value is `undefined`. * @example * ```handlebars * {{!-- Embed data as JSON for JavaScript consumption --}} * * * {{!-- Pretty-printed JSON (2-space indent) --}} *
{{{jsonStringify data 2}}}
* ```
*/
export declare const jsonStringify: (value: any, indent?: number | string) => string | undefined;
/**
* Parses a JSON string into a JavaScript value using `JSON.parse`.
* @param {string} value The JSON string to parse.
* @returns {any} The parsed JavaScript value or object.
* @example
* ```handlebars
* {{!-- Parse a JSON string stored in a template variable --}}
* {{#with (jsonParse jsonString)}}
* {{this.name}}
* {{/with}} * ``` */ export declare const jsonParse: (value: any) => any;