/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Branded } from "@matter/general"; import { TlvWrapper } from "../tlv/TlvWrapper.js"; /** * Each fabric supported on a node is referenced by fabric-index that is unique on the node. This * fabric-index enables the look-up of the full fabric information from the fabric-index. A fabric-index * of 0 (zero) or null SHALL indicate that there is no fabric associated with the context in which the * fabric-index is being used. If fabric-index is used in a context that is exclusively associated with * a fabric, such as fabric-scoped data model elements, then the fabric-index values SHALL NOT include 0 * (zero) or null. * * @see {@link MatterSpecification.v10.Core} § 7.5.2 */ export type FabricIndex = Branded; export declare function FabricIndex(value: number): FabricIndex; export declare namespace FabricIndex { const NO_FABRIC: FabricIndex; const OMIT_FABRIC: FabricIndex; /** * True when `value` is a real fabric index in the spec range for fabric-scoped data (1..254 per Matter * §7.5.2). Excludes the {@link NO_FABRIC} and {@link OMIT_FABRIC} sentinels. */ const isValid: (value: unknown) => value is FabricIndex; } declare class FabricIndexTlvWrapper extends TlvWrapper { constructor(); validate(value: FabricIndex): void; } /** Tlv Schema for a Fabric Index. */ export declare const TlvFabricIndex: FabricIndexTlvWrapper; export {}; //# sourceMappingURL=FabricIndex.d.ts.map