/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { ClusterId, EndpointNumber, EventId, EventNumber, NodeId, Priority, Status, TlvEventData, TlvEventReport, TlvEventStatus, TlvStream, TypeFromSchema } from "@matter/types"; /** @deprecated since 0.17 — will be removed in 0.19. Import from `@project-chip/matter.js/cluster` instead. */ export type DecodedEventData = { eventNumber: EventNumber; priority: Priority; epochTimestamp?: number | bigint; systemTimestamp?: number | bigint; deltaEpochTimestamp?: number | bigint; deltaSystemTimestamp?: number | bigint; data?: T; }; /** @deprecated since 0.17 — will be removed in 0.19. Import from `@project-chip/matter.js/cluster` instead. */ export type DecodedEventReportEntry = { path: { nodeId?: NodeId; endpointId: EndpointNumber; clusterId: ClusterId; eventId: EventId; eventName: string; }; }; /** * Represents a fully qualified and decoded event 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 DecodedEventReportValue = DecodedEventReportEntry & { events: DecodedEventData[]; }; /** * Represents a fully qualified and decoded event 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 DecodedEventReportStatus = DecodedEventReportEntry & { status?: Status; clusterStatus?: number; }; /** * @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 normalizeAndDecodeReadEventReport(data: TypeFromSchema[]): { eventData: DecodedEventReportValue[]; eventStatus: DecodedEventReportStatus[]; }; /** * @deprecated since 0.17 — will be removed in 0.19. Use the streaming `InputChunk` API instead. */ export declare function normalizeEventData(data: TypeFromSchema[]): TypeFromSchema[][]; /** * @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 normalizeAndDecodeEventData(data: TypeFromSchema[]): DecodedEventReportValue[]; /** * @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 normalizeEventStatus(data: TypeFromSchema[]): DecodedEventReportStatus[]; export declare function decodeUnknownEventValue(data: TlvStream): any; //# sourceMappingURL=EventDataDecoder.d.ts.map