/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * Serialize to JSON with BigInt support.
 * - BigInt values within safe integer range are converted to numbers
 * - Large BigInt values are output as raw decimal numbers (not quoted strings)
 * Use this for outgoing WebSocket messages and displaying values.
 */
export declare function toBigIntAwareJson(value: unknown, spaces?: number): string;
/**
 * Parse JSON with BigInt support for large numbers that exceed JavaScript precision.
 * Numbers with 15+ digits that exceed MAX_SAFE_INTEGER are converted to BigInt.
 * Use this for incoming WebSocket messages.
 *
 * This function carefully avoids modifying numbers that appear inside string values.
 */
export declare function parseBigIntAwareJson(json: string): unknown;
//# sourceMappingURL=json-utils.d.ts.map