export interface RoomDirectory { room_id: string; servers: string[]; } export interface RoomVisibility { visibility: string; } export interface SetRoomVisibilityResponse { } export interface KnockResponse { room_id: string; } export interface JoinResponse { room_id: string; } export interface ListJoinedRoomsResponse { joined_rooms: string[]; } export interface ListJoinedMembersResponse { joined: { [userId: string]: { avatar_url: string; display_name: string; }; }; } export interface LeaveResponse { } export interface KickResponse { } export interface InviteUserResponse { } export interface PowerLevelsContent { ban?: number; events?: { [eventType: string]: number; }; events_default?: number; invite?: number; kick?: number; notifications?: { room?: number; }; redact?: number; state_default?: number; users?: { [userId: string]: number; }; users_default?: number; [key: string]: unknown; } export interface SetPowerLevelsResponse { } export declare function queryId(alias: string, homeServerUrl: string, accessToken?: string): Promise; export declare function queryVisibility(roomId: string, homeServerUrl?: string, accessToken?: string): Promise; export declare function setVisibility(roomId: string, visibility: string, homeServerUrl: string, accessToken: string): Promise; export declare function knock(roomIdOrAlias: string, homeServerUrl: string, accessToken: string): Promise; export declare function join(roomIdOrAlias: string, homeServerUrl: string, accessToken: string): Promise; export declare function listJoinedRooms(homeServerUrl: string, accessToken: string): Promise; export declare function listJoinedMembers(roomId: string, homeServerUrl: string, accessToken: string): Promise; export declare function leave(roomId: string, reason: string, homeServerUrl: string, accessToken: string): Promise; export declare function kick(roomId: string, userId: string, reason: string, homeServerUrl: string, accessToken: string): Promise; export declare function inviteUser(roomId: string, userId: string, homeServerUrl: string, accessToken: string): Promise; export declare function getPowerLevels(roomId: string, homeServerUrl: string, accessToken: string): Promise; export declare function setPowerLevels(roomId: string, content: PowerLevelsContent, homeServerUrl: string, accessToken: string): Promise;