/** * @license * Copyright 2025-2026 Open Home Foundation * SPDX-License-Identifier: Apache-2.0 */ export type ParsedPayload = { ok: true; value: unknown; } | { ok: false; error: string; }; /** * Parse a JSON payload from a developer-facing textarea. * * Uses {@link parseBigIntAwareJson} so that literals exceeding `Number.MAX_SAFE_INTEGER` * round-trip as `bigint` on the wire (matching the rest of the WebSocket client). */ export declare function parseJsonPayload(text: string): ParsedPayload; /** * True if the value is a JSON object (non-null, non-array, plain record shape). * * Matter command payloads are struct-shaped, so invoking with a raw array / string / * number is almost certainly a user mistake. */ export declare function isPlainObject(value: unknown): value is Record; //# sourceMappingURL=parse-json-payload.d.ts.map