/** * JSON utilities module * * @module json * * @example * Import JSON utilities: * ```typescript * import { j, jt, js } from '@vvlad1973/utils'; * ``` */ /** * Converts JSON to string with tab indentation * * @param json - JSON object to stringify * @returns JSON string with tab indentation * * @example * ```typescript * const obj = { name: 'John', age: 30 }; * const result = jt(obj); * // returns "{\n\t\"name\": \"John\",\n\t\"age\": 30\n}" * ``` */ export declare function jt(json: unknown): string; /** * Converts JSON to compact string (no indentation) * * @param json - JSON object to stringify * @returns Compact JSON string * * @example * ```typescript * const obj = { name: 'John', age: 30 }; * const result = j(obj); * // returns "{\"name\":\"John\",\"age\":30}" * ``` */ export declare function j(json: unknown): string; /** * Converts JSON to string with space indentation * * @param json - JSON object to stringify * @returns JSON string with space indentation * * @example * ```typescript * const obj = { name: 'John', age: 30 }; * const result = js(obj); * // returns "{\n \"name\": \"John\",\n \"age\": 30\n}" * ``` */ export declare function js(json: unknown): string;