matrix-react-sdk
Version:
SDK for matrix.org using React
15 lines (14 loc) • 491 B
TypeScript
import { Room } from "matrix-js-sdk/src/matrix";
interface GuestAccessInformation {
canInviteGuests: boolean;
guestSpaUrl?: string;
isRoomJoinable: () => boolean;
canInvite: boolean;
}
/**
* Helper to retrieve the guest access related information for a room.
* @param room
* @returns The GuestAccessInformation which helps decide what options the user should be given.
*/
export declare const useGuestAccessInformation: (room: Room) => GuestAccessInformation;
export {};