/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /** * Deprecated element interfaces and factory functions for the legacy {@link ClusterType} factory. * * These provide a backward-compatible API for consumers that define clusters using the deprecated * {@link ClusterType}() factory rather than generated cluster namespaces or the decorator system. * * @deprecated use generated cluster namespaces or the decorator system instead. */ import { Priority } from "#globals/Priority.js"; import { AccessLevel } from "@matter/model"; import { AttributeId } from "../datatype/AttributeId.js"; import { CommandId } from "../datatype/CommandId.js"; import { EventId } from "../datatype/EventId.js"; import { BitSchema } from "../schema/BitmapSchema.js"; import { TlvSchema } from "../tlv/TlvSchema.js"; /** * @deprecated */ export interface Attribute { id: AttributeId; schema: TlvSchema; optional: boolean; readAcl: AccessLevel; writable: boolean; scene: boolean; persistent: boolean; timed: boolean; fixed: boolean; fabricScoped: boolean; omitChanges: boolean; writeAcl?: AccessLevel; default?: T; unknown: boolean; } /** * @deprecated */ export interface OptionalAttribute extends Attribute { optional: true; } /** * @deprecated */ export interface WritableAttribute extends Attribute { writable: true; } /** * @deprecated */ export interface OptionalWritableAttribute extends OptionalAttribute { writable: true; } /** * @deprecated */ export interface FabricScopedAttribute extends Attribute { fabricScoped: true; } /** * @deprecated */ export interface WritableFabricScopedAttribute extends WritableAttribute { fabricScoped: true; } /** * @deprecated */ export interface OptionalWritableFabricScopedAttribute extends OptionalWritableAttribute { fabricScoped: true; } /** * @deprecated */ export interface FixedAttribute extends Attribute { fixed: true; } /** * @deprecated */ export interface WritableFixedAttribute extends WritableAttribute { fixed: true; } /** * @deprecated */ export interface OptionalFixedAttribute extends OptionalAttribute { fixed: true; } interface AttributeOptions { scene?: boolean; persistent?: boolean; omitChanges?: boolean; timed?: boolean; default?: T; readAcl?: AccessLevel; writeAcl?: AccessLevel; } /** * @deprecated */ export declare const Attribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => Attribute; /** * @deprecated */ export declare const OptionalAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => OptionalAttribute; /** * @deprecated */ export declare const WritableAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, writeAcl, timed, }?: AttributeOptions) => WritableAttribute; /** * @deprecated */ export declare const OptionalWritableAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, writeAcl, timed, }?: AttributeOptions) => OptionalWritableAttribute; /** * @deprecated */ export declare const FabricScopedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => FabricScopedAttribute; /** * @deprecated */ export declare const WritableFabricScopedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, writeAcl, timed, }?: AttributeOptions) => WritableFabricScopedAttribute; /** * @deprecated */ export declare const OptionalWritableFabricScopedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, writeAcl, timed, }?: AttributeOptions) => OptionalWritableFabricScopedAttribute; /** * @deprecated */ export declare const FixedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => FixedAttribute; /** * @deprecated */ export declare const WritableFixedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => FixedAttribute; /** * @deprecated */ export declare const OptionalFixedAttribute: (id: number, schema: TlvSchema, { scene, persistent, omitChanges, default: conformanceValue, readAcl, timed, }?: AttributeOptions) => OptionalFixedAttribute; /** * @deprecated */ export interface Command { optional: boolean; requestId: CommandId; requestSchema: TlvSchema; responseId: CommandId; responseSchema: TlvSchema; invokeAcl: AccessLevel; timed: boolean; } /** * @deprecated */ export interface OptionalCommand extends Command { optional: true; } interface CommandOptions { invokeAcl?: AccessLevel; timed?: boolean; } /** * @deprecated */ export declare const Command: (requestId: number, requestSchema: TlvSchema, responseId: number, responseSchema: TlvSchema, { invokeAcl, timed }?: CommandOptions) => Command; /** * @deprecated */ export declare const OptionalCommand: (requestId: number, requestSchema: TlvSchema, responseId: number, responseSchema: TlvSchema, { invokeAcl, timed }?: CommandOptions) => OptionalCommand; /** * @deprecated */ export interface Event { id: EventId; schema: TlvSchema; priority: Priority; optional: boolean; readAcl: AccessLevel; unknown: boolean; } /** * @deprecated */ export interface OptionalEvent extends Event { optional: true; } interface EventOptions { readAcl?: AccessLevel; } /** * @deprecated */ export declare const Event: (id: number, priority: Priority, schema: TlvSchema, { readAcl }?: EventOptions) => Event; /** * @deprecated */ export declare const OptionalEvent: (id: number, priority: Priority, schema: TlvSchema, { readAcl }?: EventOptions) => OptionalEvent; export {}; //# sourceMappingURL=RetiredElements.d.ts.map