UNPKG

matrix-react-sdk

Version:
27 lines (26 loc) 717 B
interface Client { getUserId: () => string; checkUserTrust: (userId: string) => { isCrossSigningVerified: () => boolean; wasCrossSigningVerified: () => boolean; }; getStoredDevicesForUser: (userId: string) => [{ deviceId: string; }]; checkDeviceTrust: (userId: string, deviceId: string) => { isVerified: () => boolean; }; } interface Room { getEncryptionTargetMembers: () => Promise<[{ userId: string; }]>; roomId: string; } export declare enum E2EStatus { Warning = "warning", Verified = "verified", Normal = "normal" } export declare function shieldStatusForRoom(client: Client, room: Room): Promise<E2EStatus>; export {};