/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { DeviceClassification, ElementTag, EndpointComposition } from "../common/index.js"; import { BaseElement } from "./BaseElement.js"; import { ConditionElement } from "./ConditionElement.js"; import { FieldElement } from "./FieldElement.js"; import { RequirementElement } from "./RequirementElement.js"; /** * Details on a specific device as defined in the Matter specification. * * TODO - extract/merge DeviceTypes.ts? */ export interface DeviceTypeElement extends BaseElement { tag: `${DeviceTypeElement.Tag}`; classification?: `${DeviceClassification}`; /** * How this device type composes its endpoint's `PartsList`, where it declares this itself. * * A device type that declares nothing leaves this unset; `DeviceTypeModel.effectiveComposition` * is what answers for one, inheritance and default included. */ composition?: `${EndpointComposition}`; /** * The revision this device type states for itself. * * A device type carries its revision in the Descriptor `DeviceTypeList` default, which is what it reports over * the wire. A device type with no id has no such entry and states its revision here instead. * {@link DeviceTypeModel.revision} answers with whichever applies. */ revision?: number; category?: string; children?: (RequirementElement | FieldElement | ConditionElement)[]; } export declare function DeviceTypeElement(definition: DeviceTypeElement.Properties, ...children: (RequirementElement | FieldElement | ConditionElement)[]): DeviceTypeElement; export declare namespace DeviceTypeElement { type Tag = ElementTag.DeviceType; const Tag = ElementTag.DeviceType; type Properties = BaseElement.Properties; } //# sourceMappingURL=DeviceTypeElement.d.ts.map