import { type CallMembershipIdentityParts } from "./EncryptionManager.ts"; import type { InboundEncryptionSession, RtcSlotEventContent, SlotDescription } from "./types.ts"; import type { Room } from "../models/room.ts"; /** * Detects when a key for a given index is outdated. */ export declare class OutdatedKeyFilter { private tsBuffer; /** * Check if there is a recent key with the same keyId (index) and then use the creationTS to decide what to * do with the key. If the key received is older than the one already in the buffer, it is ignored. * @param participantId * @param item */ isOutdated(membership: CallMembershipIdentityParts, item: InboundEncryptionSession): boolean; } /** * Converts a slot ID into it's component application and ID portions. * @param slotId e.g. `m.call#call_id` * @throws If the format of `slotId` is invalid. */ export declare function slotIdToDescription(slotId: string): SlotDescription; /** * Converts a SlotDescription into it's slot ID format. */ export declare function computeSlotId(slotDescription: SlotDescription): string; /** * Reads the slot state event's content for the given slot description. * * @returns The slot event's content, or `undefined` if no slot event exists for the given description. */ export declare function getSlotEventContent(room: Pick, slotDescription: SlotDescription): RtcSlotEventContent | undefined; /** * Whether the given slot is closed. * * @returns `true` if the slot is closed, `false` if the slot is open or `undefined` * if no slot exists. */ export declare function isSlotClosed(room: Pick, slotDescription: SlotDescription): boolean | undefined; /** * Whether the given slot is open. * * @returns `true` if the slot is open, `false` if the slot is closed or `undefined` * if no slot exists. */ export declare function isSlotOpen(room: Pick, slotDescription: SlotDescription): boolean | undefined; //# sourceMappingURL=utils.d.ts.map