/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { MessageReceptionStateEncryptedWithRollover } from "#protocol/MessageReceptionState.js"; import { Bytes, StorageContext } from "@matter/general"; import { NodeId } from "@matter/types"; export declare class MessagingState { #private; constructor(storage?: StorageContext); set storage(storage: StorageContext); /** * @deprecated Migration-only. Reads the maximum value across the legacy per-operational-key group data counters so * the node-global group data counter can be seeded above every previously used value. Remove once the migration * window has passed. */ legacyGroupDataCounterMax(): Promise; /** * @deprecated Migration-only. Deletes the legacy per-operational-key group data counters after the node-global * counter has been seeded from them. Remove once the migration window has passed. */ clearLegacyGroupDataCounters(): Promise; /** * Returns the message reception state for a given source node id and operational key. */ receptionStateFor(sourceNodeId: NodeId, operationalKey: Bytes): MessageReceptionStateEncryptedWithRollover; /** * Discards the replay-protection reception state for an operational key. Called when the key's key set is removed * so that a later key set reusing the same epoch key starts a fresh counter window and its first message * re-synchronizes instead of being rejected as a replay against the removed key's high-water counter. */ forgetReceptionState(operationalKey: Bytes): void; } //# sourceMappingURL=MessagingState.d.ts.map