/** * Parses a JSON string and converts it into a JavaScript object or array. * This function uses the `json-big-number` library, which supports parsing large numbers * (BigNumbers) that may exceed JavaScript's safe integer range. * * @param {string} source - The JSON string to parse. * @param {(key: string, value: unknown) => unknown} [reviver] - An optional function that transforms the results. * Each key/value pair is passed to this function, and its return value is used instead of the original value. * @returns {unknown} - The JavaScript object or array resulting from parsing the JSON string. */ declare function parse(source: string, reviver?: (key: string, value: unknown) => unknown): unknown; /** * Converts a JavaScript object or array into a JSON string. * This function uses the `json-big-number` library, which supports serializing large numbers (BigNumbers) * without losing precision, making it useful for cases where large numerical values need to be preserved. * * @param {unknown} value - The value to convert into a JSON string. This can be an object, array, or any other data type. * @param {(key: string, value: unknown) => unknown} [replacer] - An optional function that can modify the behavior of the stringification process. * If provided, it is called for each key/value pair. * @param {string | number} [space] - An optional argument that controls indentation in the output JSON string. * If a number, it specifies the number of spaces to indent. If a string, it specifies the characters to use for indentation. * @returns {string} - The JSON string representation of the provided value. */ declare function stringify(value: unknown, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string; declare const JsonBigNumber: { parse: typeof parse; stringify: typeof stringify; }; export default JsonBigNumber;