import { JsonValue } from '../types'; /** * Fix a broken JSON string by attempting to extract and parse valid JSON content. This function is very lenient and will attempt to fix many types of JSON errors, including unbalanced brackets, missing or extra commas, improperly escaped $ signs, unquoted strings, trailing commas, missing closing brackets or braces, etc. * @param {string} jsonStr - The broken JSON string to fix * @returns {JsonValue} - The parsed JSON value */ export declare function fixBrokenJson(jsonStr: string): JsonValue; /** * Returns true if the given JSON string is valid, false otherwise. * * This function simply attempts to parse the given string as JSON and returns true if successful, or false if an error is thrown. * * @param {string} jsonString The JSON string to validate. * @returns {boolean} True if the JSON string is valid, false otherwise. */ export declare function isValidJson(jsonString: string): boolean;