/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Subject } from "#action/server/Subject.js"; import { BasicMap, Bytes } from "@matter/general"; import { EndpointNumber, FabricId, GroupId } from "@matter/types"; import { KeySets, OperationalKeySet } from "./KeySets.js"; /** Multicast address policy for a group. IanaAddr uses the shared FF05::FA address; PerGroupId derives from GroupId. */ export type GroupMulticastPolicy = "ianaAddr" | "perGroupId"; /** IANA-assigned shared multicast address for Groupcast cluster (Matter 1.6). */ export declare const IANA_GROUPCAST_MULTICAST_ADDRESS = "ff05::fa"; export declare class Groups { #private; /** Operational variant of the group table, maps group Ids to a list of enabled endpoints. */ readonly endpointMap: BasicMap; constructor(fabricId: FabricId, keySets: KeySets); /** Operative lookup of the group key sets by a group id and to react on added removed groups. */ get idMap(): BasicMap; /** Updates the group key id map when changed in Group Key Management Cluster. Only changes are taken over. */ set idMap(map: Map); /** * Whether any group of this fabric currently maps to the given key set. Group message decryption only considers * keys of mapped key sets — an unmapped key set exists but is not usable for group communication. */ isKeySetMapped(keySetId: number): boolean; subjectForGroup(id: GroupId, operationalKey: Bytes): Subject; /** Multicast address policy per group. A group without an entry uses its per-group address. */ get multicastPolicy(): BasicMap; /** 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, reverting to the default (PerGroupId). */ removeGroupMulticastPolicy(groupId: GroupId): void; /** Returns the multicast address for a given group id for this fabric. */ multicastAddress(groupId: GroupId): string; /** * Returns the current operational group key for a given group id and returns the keys, start time and * their session IDs. */ currentKeyForId(groupId: GroupId): { key: Bytes; privacyKey?: Bytes; sessionId?: number; startTime: import("@matter/general").Timestamp; keySetId: number; }; } //# sourceMappingURL=Groups.d.ts.map