/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { ArraySchema, AttributeId, ClusterId, EndpointNumber, NodeId, Status, TlvAttributeData, TlvAttributeReport, TlvAttributeStatus, TlvDecodingOptions, TlvSchema, TypeFromSchema } from "@matter/types"; /** @deprecated since 0.17 — will be removed in 0.19. Import from `@project-chip/matter.js/cluster` instead. */ export type DecodedAttributeReportEntry = { path: { nodeId?: NodeId; endpointId: EndpointNumber; clusterId: ClusterId; attributeId: AttributeId; attributeName: string; }; }; /** * Represents a fully qualified and decoded attribute value from a received DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Import from `@project-chip/matter.js/cluster` instead. */ export type DecodedAttributeReportValue = DecodedAttributeReportEntry & { version: number; value: T; }; /** * Represents a fully qualified and decoded attribute status from a received DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Import from `@project-chip/matter.js/cluster` instead. */ export type DecodedAttributeReportStatus = DecodedAttributeReportEntry & { status?: Status; clusterStatus?: number; }; /** Internal — like {@link DecodedAttributeReportValue} but with optional version. */ type DecodedAttributeValue = Omit, "version"> & { version?: number; }; /** * Parses, normalizes (e.g. un-chunk arrays and resolve Tag compression if used) and decodes the attribute data from * a received DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Use the streaming `InputChunk` API or `decodeDataReport` from * `@project-chip/matter.js/cluster`. */ export declare function normalizeAndDecodeReadAttributeReport(data: TypeFromSchema[], leftoverAttributeReports?: TypeFromSchema[]): { attributeData: DecodedAttributeReportValue[]; attributeStatus: DecodedAttributeReportStatus[]; }; export declare function expandPathsInAttributeData(data: TypeFromSchema[], acceptWildcardPaths?: boolean): TypeFromSchema[]; /** * Normalizes (e.g. prepare data for array un-chunking and resolve Tag compression if used) the attribute details from * a received DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Use the streaming `InputChunk` API or `decodeDataReport` from `@project-chip/matter.js/cluster`. */ export declare function normalizeAttributeData(data: TypeFromSchema[], acceptWildcardPaths?: boolean): TypeFromSchema[][]; /** * Normalizes (e.g. un-chunk arrays and resolve Tag compression if used) and decodes the attribute data from a received * DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Use the streaming `InputChunk` API or `decodeDataReport` from `@project-chip/matter.js/cluster`. */ export declare function normalizeAttributeStatus(data: TypeFromSchema[]): DecodedAttributeReportStatus[]; /** * Normalizes (e.g. un-chunk arrays and resolve Tag compression if used) and decodes the attribute data from a received * DataReport. * * @deprecated since 0.17 — will be removed in 0.19. Use the streaming `InputChunk` API or `decodeDataReport` from `@project-chip/matter.js/cluster`. */ export declare function normalizeAndDecodeAttributeData(data: TypeFromSchema[]): DecodedAttributeValue[]; export declare function decodeListAttributeValueWithSchema(schema: ArraySchema, values: TypeFromSchema[], currentValue?: T[], options?: TlvDecodingOptions): T[] | undefined; /** Decodes the data for one attribute via a schema including array un-chunking. */ export declare function decodeAttributeValueWithSchema(schema: TlvSchema, values: TypeFromSchema[], defaultValue?: T, options?: TlvDecodingOptions): T | undefined; /** Decodes the data for one unknown attribute via the AnySchema including array un-chunking. */ export declare function decodeUnknownAttributeValue(values: TypeFromSchema[]): any; export {}; //# sourceMappingURL=AttributeDataDecoder.d.ts.map