/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { DeviceClassification } from "../common/DeviceClassification.js"; import { EndpointComposition } from "../common/EndpointComposition.js"; import { DeviceTypeElement } from "../elements/index.js"; import { ConditionModel } from "./ConditionModel.js"; import { FieldModel } from "./FieldModel.js"; import { Model } from "./Model.js"; import { RequirementModel } from "./RequirementModel.js"; export declare class DeviceTypeModel extends Model implements DeviceTypeElement { #private; tag: DeviceTypeElement.Tag; classification?: DeviceClassification; /** * How this device type composes its endpoint's `PartsList`, as this device type declares it. * {@link effectiveComposition} answers what applies, inheritance and default included. */ composition?: EndpointComposition; /** * How this device type composes its endpoint's `PartsList`. * * A device type that declares nothing takes its base's answer, and the tree pattern where no * ancestor declares one either — the specification defines full-family as the exception a device * type opts into (§ 9.2.3). */ get effectiveComposition(): EndpointComposition; get requirements(): RequirementModel[]; /** * The revision this device type reports, taken from the Descriptor `DeviceTypeList` default it sends over the * wire, or from {@link DeviceTypeElement.revision} for a device type with no such entry. */ get revision(): number; /** * The revision this device type states for itself, where it states one. {@link revision} answers what applies; * this distinguishes a device type that records no revision from one that records revision 1. */ get declaredRevision(): number | undefined; constructor(definition: Model.Definition, ...children: Model.ChildDefinition[]); toElement(omitResources?: boolean, extra?: Record): DeviceTypeElement; get id(): number; set id(id: number); static Tag: import("../index.js").ElementTag; } export declare namespace DeviceTypeModel { type Child = RequirementModel | FieldModel | ConditionModel; } //# sourceMappingURL=DeviceTypeModel.d.ts.map