export { ImSDK } from './ImSDK' import { ImSDK as _ImSDK } from './ImSDK' // Convenience named exports for friend APIs export const listFriends = (): Promise => _ImSDK.listFriends() export const addFriend = (friendId: string): Promise => _ImSDK.addFriend(friendId) export const removeFriend = (friendId: string): Promise => _ImSDK.removeFriend(friendId) export const searchUsers = (keyword: string, size?: number): ReturnType => _ImSDK.searchUsers(keyword, size) export const searchGroups = (keyword: string, size?: number): ReturnType => _ImSDK.searchGroups(keyword, size) export const searchMessages = (params: Parameters[0]): ReturnType => _ImSDK.searchMessages(params) export const editMessage = (messageId: string, content: string): ReturnType => _ImSDK.editMessage(messageId, content) export const locateHistoryPage = (toId: string, messageId: string, pageSize?: number, maxPages?: number): ReturnType => _ImSDK.locateHistoryPage(toId, messageId, pageSize, maxPages) export const locateGroupHistoryPage = (groupId: string, messageId: string, pageSize?: number, maxPages?: number): ReturnType => _ImSDK.locateGroupHistoryPage(groupId, messageId, pageSize, maxPages) export { ImClient } from './ImClient' export { ImDatabase } from './db/ImDatabase' export type { MessageSearchParams } from './db/ImDatabase' export type { ImMessage, ImGroup, ChatType, MsgType, MsgStatus, ImEventListener, SendMessageParams, ConversationData, HistoryQuery, PageResult, FriendRequest, GroupJoinRequest, BlacklistEntry, UserProfile, } from './types' export { uploadFile } from './upload' export type { UploadResult } from './upload'