/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { ValueSupervisor } from "../../supervision/ValueSupervisor.js"; /** * Decide whether a validation error on a write to a peer (client) node should be forwarded to the device rather than * rejected locally. The peer is the authority on what it accepts, so conformance violations and values the local model * cannot vouch for (undefined enum values, reserved bitmap bits) are sent on for the device to adjudicate; the local * mirror compensates if the device rejects. Value-range constraints and structural datatype errors stay local: they * are caller bugs or cannot be encoded for the wire. * * Only outbound writes reach here: inbound peer reports bypass validation entirely (Datasource.integrateExternalChange), * so the broader presence of clientPeerContext on any client-node act() does not cause inbound data to be swallowed. * * Returns true if the error was forwarded (and logged); false if the caller should rethrow. */ export declare function forwardValidationToPeer(session: ValueSupervisor.Session, error: unknown): boolean; //# sourceMappingURL=peer-forwarding.d.ts.map