/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Duration } from "@matter/general"; import { AttributeData, AttributeId, ClusterId, WriteRequest } from "@matter/types"; import { Specifier } from "./Specifier.js"; /** * Whether the path is the ACL or Extension attribute of the Access Control cluster, the only lists a WriteRequest may * replace with a non-empty array. * * @see {@link MatterSpecification.v161.Core} ยง 10.6.4.3.1 */ export declare function isAclOrExtensionPath(path: { clusterId?: ClusterId; attributeId?: AttributeId; }): boolean; export interface Write extends WriteRequest { /** Timeout only relevant for Client Interactions with a required TimedRequest flagging */ timeout?: Duration; } /** * Formulate a write-request using Matter numeric IDs. */ export declare function Write(options: Write.Options): Write; /** * Formulate a write-request with extended options and name-based IDs. */ export declare function Write(options: Write.Options, ...data: Write.Attribute[]): Write; /** * Formulate a write-request with name-based IDs. */ export declare function Write(...data: Write.Attribute[]): Write; export declare namespace Write { interface Options { writes?: AttributeData[]; /** Whether this is sent as a timed request, if no timeout is specified a default is used */ timed?: boolean; /** Timeout when sent as a timed request; a non-zero timeout sets the timed flag automatically */ timeout?: Duration; interactionModelRevision?: number; chunkLists?: boolean; suppressResponse?: boolean; } /** * Selects attributes to Write. Limits fields to legal permutations per the Matter specification. */ type Attribute = (Attribute.Concrete | Attribute.WildcardEndpoint) & { kind: "attribute"; value: any; version?: number; }; function Attribute(data: Omit, "kind">): Attribute; namespace Attribute { interface Concrete { endpoint: Specifier.Endpoint; cluster: C; attributes: Specifier.Attribute> | Specifier.Attribute>[]; } interface WildcardEndpoint { endpoint?: undefined; cluster: C; attributes: Specifier.Attribute> | Specifier.Attribute>[]; } } } //# sourceMappingURL=Write.d.ts.map