import { type EncryptionConfig } from "./MatrixRTCSession.ts"; import { type CallMembership } from "./CallMembership.ts"; import { type Transport, type EncryptionKeyMapKey } from "./types.ts"; /** * The string used for the keys in the the encryption key map. * `@bob:examle.org:DEVICEID(UUIDRANDOM_MEMBERID_RANDOMUUID)` */ export declare function getEncryptionKeyMapKey(membership: CallMembershipIdentityParts): EncryptionKeyMapKey; /** * This interface is for testing and for making it possible to interchange the encryption manager. * @internal */ export interface IEncryptionManager { /** * Whether the key rotation is currently halted. * @see EncryptionConfig.keyRotationParticipantLimit */ readonly isKeyRotationSuppressed: boolean; /** * Joins the encryption manager with the provided configuration. * * @param joinConfig - The configuration for joining encryption, or undefined * @param publishedTransports - The transports on which we are publishing. * (Needed to determine which participant identity formats to use, for * compatibility.) */ join(joinConfig: EncryptionConfig | undefined, publishedTransports: Transport[]): void; /** * Leaves the encryption manager, cleaning up any associated resources. */ leave(): void; /** * Called from the MatrixRTCSession when the memberships in this session updated. * * @param oldMemberships - The previous state of call memberships before the update. */ onMembershipsUpdate(oldMemberships: CallMembership[]): void; /** * Retrieves the encryption keys currently managed by the encryption manager. * * @returns A map of participant IDs to their encryption keys. */ getEncryptionKeys(): ReadonlyMap; keyIndex: number; membership: CallMembershipIdentityParts; backendIdentity: string; }>>; } export type CallMembershipIdentityParts = Pick; //# sourceMappingURL=EncryptionManager.d.ts.map