import * as model from '../model'; import * as Api from '../api'; import { Storage } from '../storage'; export declare const getRoomAdapter: (s: Storage, api: Api.ApiRequester) => { addParticipants(roomId: number, participantIds: string[]): Promise; removeParticipants(id: model.IQChatRoom['id'], participantIds: model.IQParticipant['id'][]): Promise; chatUser(userId: model.IQUser['id'], extras?: model.IQChatRoom['extras']): Promise; clearRoom(uniqueIds: string[]): Promise; createGroup(name: model.IQChatRoom['name'], userIds: model.IQUser['id'][], avatarUrl?: model.IQChatRoom['avatarUrl'], extras?: model.IQChatRoom['extras']): Promise; getChannel(uniqueId: model.IQChatRoom['uniqueId'], name?: model.IQChatRoom['name'], avatarUrl?: model.IQChatRoom['avatarUrl'], extras?: model.IQChatRoom['extras']): Promise; getParticipantList(uniqueId: string, page?: number, limit?: number, sorting?: 'asc' | 'desc'): Promise; getRoom(roomId: number): Promise<[model.IQChatRoom, model.IQMessage[]]>; getRoomInfo(roomIds?: number[], roomUniqueIds?: string[], page?: number, showRemoved?: boolean, showParticipants?: boolean): Promise; getRoomList(showParticipants?: boolean, showRemoved?: boolean, showEmpty?: boolean, page?: number, limit?: number): Promise; getUnreadCount(): Promise; getRoomUnreadCount(): Promise; updateRoom(roomId: model.IQChatRoom['id'], name?: model.IQChatRoom['name'], avatarUrl?: model.IQChatRoom['avatarUrl'], extras?: model.IQChatRoom['extras']): Promise; }; export default getRoomAdapter; export type RoomAdapter = ReturnType;