/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { DeviceTypeModel, Model } from "../../models/index.js"; import type { DeviceTypeValidationPass } from "./DeviceTypeValidationPass.js"; /** * The facts about an endpoint that a device type's requirements are judged against, as {@link DeviceTypeFacts} * answers them and resolved in the model of a pass. * * Clusters are named by their model name, as {@link RequirementResolver.clusterOf} answers it. Features are feature * codes (e.g. `LT`), which is the name of the feature model {@link RequirementResolver.featureOf} resolves a feature * requirement to. * * Children are the parts that are {@link DeviceTypeFacts.isPresent present}, because only those answer what they * implement. * * @internal */ export declare class ResolvedEndpoint { #private; /** * Facts about {@link endpoint}, with device types and clusters resolved in the model of {@link pass}. One pass * answers one instance per endpoint, which reads the endpoint at most once. */ static of(endpoint: E, pass: DeviceTypeValidationPass): ResolvedEndpoint; private constructor(); get endpoint(): E; /** * The device types the endpoint lists that the model defines. A device type the model does not define, such as a * manufacturer-specific one, states no requirements that could be checked. */ get deviceTypes(): DeviceTypeModel[]; /** * Names of the server clusters on the endpoint. */ get servers(): ReadonlySet; /** * Names of the client clusters on the endpoint. */ get clients(): ReadonlySet; /** * The name the endpoint's server or client cluster with {@link id} goes by in {@link servers} or {@link clients}, * or undefined when the endpoint has no such cluster. */ clusterName(side: "server" | "client", id: number): string | undefined; /** * Whether a server application cluster exists on the endpoint. */ get hasApplicationServer(): boolean; /** * Whether a client application cluster that a binding may direct exists on the endpoint. * * Interpretation: Base's `Client` condition counts every client application cluster, but a client whose cluster is * not {@link ClusterModel.effectiveBindable bindable} never acts through a binding, so it does not make the endpoint * need the Binding cluster. * * @see {@link MatterSpecification.v161.Device} § 1.1.6 */ get hasBindableApplicationClient(): boolean; /** * The codes of the features the endpoint's server {@link cluster} supports; empty when there is no such server. */ features(cluster: string): ReadonlySet; /** * Whether the endpoint's server {@link cluster} implements {@link element}, an attribute, command or event model * of that cluster. * * An event also needs operational support in the cluster's schema: mandatory under the enabled features, or * enabled explicitly. */ supports(cluster: string, element: Model): boolean; /** * The endpoint's direct children. */ get children(): E[]; /** * Whether a device type of the endpoint is classified as a node, which makes the endpoint the root of a node scope. */ get isNodeEndpoint(): boolean; /** * Whether the endpoint's `PartsList` holds every descendant rather than its children. * * @see {@link MatterSpecification.v161.Core} § 9.2.7.2 */ get composesFullFamily(): boolean; /** * The endpoints the endpoint's `PartsList` reaches within its node scope: its children for the tree pattern and * its descendants for the full-family pattern, never entering a node endpoint below it. */ get compositionScope(): E[]; /** * Whether {@link endpoint} is in the {@link compositionScope}. */ composes(endpoint: E): boolean; } //# sourceMappingURL=ResolvedEndpoint.d.ts.map