import { ConnectionProtocol, ConversationQueryType } from './enum'; export type LoginParams = { username: string; token: string; appKey?: string; anonLogin?: boolean; protocol?: ConnectionProtocol; /** 登录后要初始化/从缓存恢复的会话列表 queryTypes(须与后续 getConversationByQueryTypes 使用的类型一致),非直播下必传 */ conversationQueryTypes?: ConversationQueryType[]; }; export declare type UploadFileParams = { name?: string; contentType?: string; uuid?: string; file: File; /** * 上传凭证 ext 查询参数(如 `_dx`),与 filename 一并传给服务端拼接存储名。 */ ext?: string; }; /** * 上传返回结构 */ export type UploadResult = { originalUrl?: string; thumbnailUrl?: string; error?: Error; };