18 行
771 B
TypeScript
18 行
771 B
TypeScript
export { ImSDK } from './ImSDK'
|
|
export type { ConversationData } from './ImSDK'
|
|
import { ImSDK as _ImSDK } from './ImSDK'
|
|
|
|
// Convenience named exports for friend APIs
|
|
export const listFriends = (): Promise<string[]> => _ImSDK.listFriends()
|
|
export const addFriend = (friendId: string): Promise<void> => _ImSDK.addFriend(friendId)
|
|
export const removeFriend = (friendId: string): Promise<void> => _ImSDK.removeFriend(friendId)
|
|
export { ImClient } from './ImClient'
|
|
export { ImDatabase } from './db/ImDatabase'
|
|
export type { MessageSearchParams } from './db/ImDatabase'
|
|
export type {
|
|
ImMessage, ImGroup, ChatType, MsgType, MsgStatus,
|
|
ImEventListener, SendMessageParams,
|
|
} from './types'
|
|
export { uploadFile } from './upload'
|
|
export type { UploadResult } from './upload'
|