import { t as Result } from "./result-Dg2-rfn6.js"; //#region src/json.d.ts /** * Options for {@link jsonStringify}. */ interface JsonStringifyOptions { /** * Pretty-print with 2-space indentation. Defaults to false. */ readonly pretty?: boolean; } /** * Parse a JSON string into an unknown value, returning a {@link Result} instead of throwing. * * @param raw - The JSON string to parse. * @returns A Result tuple with the parsed value or an error message. */ declare function jsonParse(raw: string): Result; /** * Serialize a value to a JSON string, returning a {@link Result} instead of throwing. * * @param data - The value to serialize. * @param options - Serialization options. * @returns A Result tuple with the JSON string or an error message. */ declare function jsonStringify(data: unknown, options?: JsonStringifyOptions): Result; //#endregion export { JsonStringifyOptions, jsonParse, jsonStringify }; //# sourceMappingURL=json.d.ts.map