/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { AccessControl } from "./server/AccessControl.js"; /** * Any JS value representing a value defined by Matter. */ export type Val = unknown; export declare namespace Val { /** * Type for Matter structs. In JS this is an object with string keys. */ type Struct = Record; /** * An ordered map representation of {@link Struct} that preserves insertion order of keys. * * Used when attribute-change ordering must be maintained across the processing pipeline. */ type StructMap = Map; /** * Type for Matter structs encoded using protocol semantics. In JS this is an object with "numeric" keys. */ type ProtocolStruct = Record; /** * Type for Matter lists. In Js this is an array. */ type List = Val[]; /** * Any matter collection type. */ type Collection = Struct | List; /** * A readonly version of {@link Collection}. */ type ReadonlyCollection = { readonly [K: string | number]: Val; } | ReadonlyArray; const properties: unique symbol; /** * Unmanaged raw state classes have no contextual information. They may implement this interface to provide an * alternate context-aware object for property read, write and validation. */ interface Dynamic extends Struct { /** * Obtain a context-aware property source (and sink). Supervision will read/write properties from here if * present. Otherwise they're read from static state as normal. * * @param owner the owner of the root reference of the managed value * @param session the {@link AccessControl.Session} accessing the value */ [properties](this: This, owner: O, session: S): Partial; } } //# sourceMappingURL=Val.d.ts.map