/**
 * Parses a JSON string and returns the corresponding object.
 *
 * @template T - The type of the object to be returned.
 * @param {string | null} value - The JSON string to parse. If the value is null or empty, the function returns undefined.
 * @returns {T | undefined} - The parsed object, or undefined if the input value is null or empty.
 * @throws {Error} - Throws an error if the JSON string cannot be parsed.
 */
export declare function parseJSON<T>(value: string | null): T | undefined;
/**
 * Safely parses a JSON string and returns the corresponding object.
 *
 * @template T - The expected type of the parsed object.
 * @param {string | null} value - The JSON string to parse. If the value is null or an empty string, the function returns undefined.
 * @returns {T | undefined} - The parsed object of type T, or undefined if the input is null, empty, or if parsing fails.
 */
export declare function saveParseJson<T>(value: string | null): T | undefined;
/**
 * Converts a value to a JSON string.
 *
 * @template T - The type of the value to be stringified.
 * @param {T} value - The value to be converted to a JSON string.
 * @returns {string | undefined} The JSON string representation of the value, or undefined if an error occurs.
 */
export declare function stringify<T>(value: T): string | undefined;
export declare const json: {
    parse: typeof parseJSON;
    saveParse: typeof saveParseJson;
    stringify: typeof stringify;
};
//# sourceMappingURL=handle-json.d.ts.map