import { AsyncCommandResult, CommandResult, DefaultRes } from '../../request'; import { Channel, ChannelDataStore, ChannelMeta, NormalChannelInfo, SetChannelMeta, UpdatableChannelDataStore } from '../../channel'; import { ChannelUser, NormalChannelUserInfo } from '../../user'; import { Chat, Chatlog, ChatLogged, ChatType, UpdatableChatListStore } from '../../chat'; import { Managed } from '../managed'; import { EventContext, TypedEmitter } from '../../event'; import { Long } from 'bson'; import { TalkSession } from '../client'; import { MediaKeyComponent, MediaMultiPost, MediaPost, MediaUploadForm } from '../../media'; import { ChannelEvents } from '../event'; import { TalkChannel } from '.'; import { ChannelMetaType, GroupMetaContent, LiveTalkCountMetaContent, LiveTalkInfoMetaContent, ProfileMetaContent, TvLiveMetaContent, TvMetaContent } from '../../channel/meta'; import { ChatOnRoomRes } from '../../packet/chat'; import { MediaUploadTemplate } from '../media/upload'; import { FixedReadStream } from '../../stream'; declare type TalkChannelEvents = ChannelEvents; export declare class TalkNormalChannel extends TypedEmitter implements TalkChannel, ChannelDataStore, Managed { private _channel; private _chatListStore; private _channelSession; private _normalChannelSession; private _normalHandler; private _handler; constructor(_channel: Channel, session: TalkSession, store: UpdatableChannelDataStore, _chatListStore: UpdatableChatListStore); get clientUser(): Readonly; get channelId(): Long; get chatListStore(): UpdatableChatListStore; get store(): UpdatableChannelDataStore; get info(): Readonly; get userCount(): number; getName(): string; getDisplayName(): string; getUserInfo(user: ChannelUser): Readonly | undefined; getAllUserInfo(): IterableIterator; getReadCount(chat: ChatLogged): number; getReaders(chat: ChatLogged): Readonly[]; sendChat(chat: string | Chat, noSeen?: boolean): AsyncCommandResult; forwardChat(chat: Chat, noSeen?: boolean): AsyncCommandResult; deleteChat(chat: ChatLogged): AsyncCommandResult; markRead(chat: ChatLogged): AsyncCommandResult; setMeta(type: ChannelMetaType, meta: ChannelMeta | string): AsyncCommandResult; setTitleMeta(title: string): AsyncCommandResult; setNoticeMeta(notice: string): AsyncCommandResult; setProfileMeta(content: ProfileMetaContent): AsyncCommandResult; setTvMeta(content: TvMetaContent): AsyncCommandResult; setTvLiveMeta(content: TvLiveMetaContent): AsyncCommandResult; setLiveTalkInfoMeta(content: LiveTalkInfoMetaContent): AsyncCommandResult; setLiveTalkCountMeta(content: LiveTalkCountMetaContent): AsyncCommandResult; setGroupMeta(content: GroupMetaContent): AsyncCommandResult; setPushAlert(flag: boolean): AsyncCommandResult; inviteUsers(users: ChannelUser[]): AsyncCommandResult; syncChatList(endLogId: Long, startLogId?: Long): AsyncIterableIterator>; getChatListFrom(startLogId?: Long): AsyncCommandResult; chatON(): AsyncCommandResult; getLatestChannelInfo(): AsyncCommandResult; getLatestUserInfo(...users: ChannelUser[]): AsyncCommandResult; getAllLatestUserInfo(): AsyncCommandResult; downloadMedia(media: MediaKeyComponent, type: ChatType, offset?: number): AsyncCommandResult; downloadMediaThumb(media: MediaKeyComponent, type: ChatType, offset?: number): AsyncCommandResult; uploadMedia(type: ChatType, form: MediaUploadForm): AsyncCommandResult; uploadMultiMedia(type: ChatType, forms: MediaUploadForm[]): AsyncCommandResult; sendMedia(type: ChatType, template: MediaUploadTemplate): AsyncCommandResult; sendMultiMedia(type: ChatType, templates: MediaUploadTemplate[]): AsyncCommandResult; updateAll(): AsyncCommandResult; pushReceived(method: string, data: DefaultRes, parentCtx: EventContext): Promise; } export {};