/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /** * The Matter specification documents. */ export declare enum Specification { Core = "core", Cluster = "cluster", Device = "device", Namespace = "namespace" } export declare namespace Specification { /** * Long names for Matter specification documents. */ enum Names { core = "Matter Core Specification", cluster = "Matter Application Cluster Specification", device = "Matter Device Library Specification", namespace = "Matter Standard Namespace Specification" } /** * Information on the source of an element. */ type CrossReference = { /** * The defining document for the element. */ document: `${Specification}`; /** * The section of the defining document that most specifically * addresses the element. */ section: string; }; /** * Matter specification version. */ type Revision = `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}.${number}`; /** * Compare two specification revisions. * * Revisions are dotted numeric strings of varying length, so we compare segment-by-segment numerically with missing * trailing segments treated as zero. This makes "1.6" and "1.6.0" equal and orders patch levels intuitively. * * Returns a negative number if {@link a} precedes {@link b}, positive if it follows and zero if they are equal. */ function compareRevisions(a: Revision, b: Revision): number; /** * The default specification revision for Matter.js. */ const REVISION = "1.6.1"; /** * Enables Matter behaviour implemented ahead of a released specification revision. * * Off in every release. Only allowed to be enabled for cert-testing related use-cases; there is no supported configuration or API * to change it. Tests enable single features through the `MatterHooks` test harness hook, which any runtime that * defines that global also reaches. Typed as `boolean` so that code behind a guard stays type-checked. When a * feature ships in a released specification, remove every guard for it and its name from {@link ForwardFeature}. */ const ENABLE_FORWARD_MATTER_FEATURES: boolean; /** * Features implemented ahead of a released specification; each name marks its guards. * * Use only names that are already public, so the source does not disclose unreleased specification content. */ type ForwardFeature = "pqc-phase-1" | "delay-report-data"; /** * Whether a forward feature is active. Tests enable one with `MockForwardFeatures.enable()` from * `@matter/testing` through the `MatterHooks` global, which only the test harness installs. */ function isForwardFeatureEnabled(feature: ForwardFeature): boolean; /** * Binary version of specification revision defined by Basic Information Cluster. * * Currently spec says least significant octet is "reserved", so it should remain zero. */ const SPECIFICATION_VERSION = 17170688; /** * Data model revision associated with the default revision of Matter. */ const DATA_MODEL_REVISION = 21; /** * Interaction model revision associated with the default revision of Matter. * * Capped at 12 because rev 13's sole delta over 12 is WildcardFilterConfigurationVersion, which spec * ยง8.2.1.7.1 marks provisional (not certifiable). * TODO: Bump to 13 once that feature becomes certifiable. */ const INTERACTION_MODEL_REVISION = 12; } //# sourceMappingURL=Specification.d.ts.map