/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { InteractionSession } from "#action/Interactable.js"; import { AttributeTypeProtocol, NodeProtocol } from "#action/protocols.js"; import { Write } from "#action/request/Write.js"; import { WriteResult } from "#action/response/WriteResult.js"; import { DataResponse } from "#action/server/DataResponse.js"; import { TlvStream } from "@matter/types"; /** * Implements write of attribute data for Matter "write" interactions. * * TODO - profile; ensure nested functions are properly JITed and/or inlined */ export declare class AttributeWriteResponse extends DataResponse { #private; constructor(node: NodeProtocol, session: SessionT, options?: AttributeWriteResponse.Options); process({ writeRequests, suppressResponse }: Write): Promise; get counts(): { status: number; success: number; existent: number; }; protected writeValue(attribute: AttributeTypeProtocol, path: WriteResult.ConcreteAttributePath, value: TlvStream): Promise; } export declare namespace AttributeWriteResponse { interface Options { /** * Tells whether a chunked write interaction other than the one of the session holds the attribute at the path. * A group or wildcard write skips such an attribute without a status. Concrete paths are not checked here. * * The specification gives no such reason to discard an expanded path; this follows the CHIP SDK. * * @see {@link MatterSpecification.v161.Core} ยง 8.7.3.2 */ isHeldByOtherWrite?(path: WriteResult.ConcreteAttributePath, session: SessionT): boolean; } } //# sourceMappingURL=AttributeWriteResponse.d.ts.map