/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { GroupKeySet, KeySets, OperationalKeySet } from "#groups/KeySets.js"; import { MessagingState } from "#groups/MessagingState.js"; import { BasicMap, Bytes, Crypto, StorageContext } from "@matter/general"; import { FabricId, GlobalFabricId, GroupId } from "@matter/types"; import { GroupMulticastPolicy } from "./Groups.js"; export declare const GROUP_SECURITY_INFO: AllowSharedBufferSource; export declare const IPK_DEFAULT_EPOCH_START_TIME: bigint; /** * Class that contains an operational view on the Group Keys for a fabric */ export declare class FabricGroups { #private; constructor(fabric: FabricGroups.FabricIdentity, storage?: StorageContext); set storage(storage: StorageContext); /** Operative lookup of the group key sets by their id. */ get keySets(): KeySets; get messaging(): MessagingState; /** Operative lookup of the group key set id and the key by a group session Id. */ get sessions(): Map; get groupKeyIdMap(): BasicMap; set groupKeyIdMap(map: Map); get endpoints(): BasicMap; get multicastPolicy(): BasicMap; /** Whether any group of this fabric currently maps to the given key set. */ isKeySetMapped(keySetId: number): boolean; currentKeyForGroup(groupId: GroupId): { key: Bytes; privacyKey?: Bytes; sessionId?: number; startTime: import("@matter/general").Timestamp; keySetId: number; }; subjectForGroup(id: GroupId, operationalKey: Bytes): import("../index.js").Subject; multicastAddressFor(groupId: GroupId): string; /** Sets the multicast address policy for a specific group (Groupcast cluster, Matter 1.6). */ setGroupMulticastPolicy(groupId: GroupId, policy: GroupMulticastPolicy): void; /** Removes the multicast address policy for a specific group. */ removeGroupMulticastPolicy(groupId: GroupId): void; /** * Sets new group key set data and pre-calculates all operative data like session ids and operational keys. * Overwriting the existing one if it exists. */ setFromGroupKeySet(groupKeySet: GroupKeySet): Promise; /** Removes a group key set by its id. */ removeGroupKeySet(groupKeySetId: number): boolean; } export declare namespace FabricGroups { /** The fabric values group key derivation and multicast addressing depend on. */ interface FabricIdentity { crypto: Crypto; fabricId: FabricId; globalId: GlobalFabricId; identityProtectionKey: Bytes; operationalIdentityProtectionKey: Bytes; } } //# sourceMappingURL=FabricGroups.d.ts.map