import type { FileBoxInterface } from 'file-box'; import type { RoomPayload, RoomPayloadFilterFunction, RoomQueryFilter } from '../schemas/room.js'; import type { PuppetSkeleton } from '../puppet/puppet-skeleton.js'; import { DirtyType } from '../schemas/dirty.js'; declare const roomMixin: { contactSelfName(name: string): Promise; contactSelfQRCode(): Promise; contactSelfSignature(signature: string): Promise; contactAlias(contactId: string): Promise; contactAlias(contactId: string, alias: string | null): Promise; contactAvatar(contactId: string): Promise; contactAvatar(contactId: string, file: FileBoxInterface): Promise; contactPhone(contactId: string, phoneList: string[]): Promise; contactCorporationRemark(contactId: string, corporationRemark: string | null): Promise; contactDescription(contactId: string, description: string | null): Promise; contactList(): Promise; contactRawPayload(contactId: string): Promise; contactRawPayloadParser(rawPayload: any): Promise; /** * * RoomMember * */ contactSearch(query?: string | import("../schemas/contact.js").ContactQueryFilter | undefined, searchIdList?: string[] | undefined): Promise; contactQueryFilterFactory(query: import("../schemas/contact.js").ContactQueryFilter): import("../schemas/contact.js").ContactPayloadFilterFunction; contactValidate(contactId: string): Promise; contactPayloadCache(contactId: string): import("../schemas/contact.js").ContactPayload | undefined; contactPayload(contactId: string): Promise; contactPayloadDirty(id: string): Promise; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; start: (() => Promise) & (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise) & (() => Promise); dirtyPayload(type: DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: DirtyType, id: string): Promise; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E, listener: import("../puppet/events.js").PuppetEventListener[E]): any; on(event: E_1, listener: import("../puppet/events.js").PuppetEventListener[E_1]): any; once(event: E_2, listener: import("../puppet/events.js").PuppetEventListener[E_2]): any; prependListener(event: E_3, listener: import("../puppet/events.js").PuppetEventListener[E_3]): any; prependOnceListener(event: E_4, listener: import("../puppet/events.js").PuppetEventListener[E_4]): any; off(event: E_5, listener: import("../puppet/events.js").PuppetEventListener[E_5]): any; removeAllListeners(event?: E_6 | undefined): any; removeListener(event: E_7, listener: import("../puppet/events.js").PuppetEventListener[E_7]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; __currentUserId?: string | undefined; readonly currentUserId: string; readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; login(userId: string): void; logout(reason?: string): Promise; selfId(): string; logonoff(): boolean; }) & (abstract new (...args: any[]) => { cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; start(): Promise; stop(): Promise; dirtyPayload(type: DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: DirtyType, id: string): Promise; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_11, listener: import("../puppet/events.js").PuppetEventListener[E_11]): any; on(event: E_12, listener: import("../puppet/events.js").PuppetEventListener[E_12]): any; once(event: E_13, listener: import("../puppet/events.js").PuppetEventListener[E_13]): any; prependListener(event: E_14, listener: import("../puppet/events.js").PuppetEventListener[E_14]): any; prependOnceListener(event: E_15, listener: import("../puppet/events.js").PuppetEventListener[E_15]): any; off(event: E_16, listener: import("../puppet/events.js").PuppetEventListener[E_16]): any; removeAllListeners(event?: E_17 | undefined): any; removeListener(event: E_18, listener: import("../puppet/events.js").PuppetEventListener[E_18]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; __currentUserId?: string | undefined; readonly currentUserId: string; readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; login(userId: string): void; logout(reason?: string): Promise; selfId(): string; logonoff(): boolean; }) & (abstract new (...args: any[]) => { __currentUserId?: string | undefined; readonly currentUserId: string; readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; start(): Promise; stop(): Promise; login(userId: string): void; logout(reason?: string): Promise; selfId(): string; logonoff(): boolean; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_19, listener: import("../puppet/events.js").PuppetEventListener[E_19]): any; on(event: E_20, listener: import("../puppet/events.js").PuppetEventListener[E_20]): any; once(event: E_21, listener: import("../puppet/events.js").PuppetEventListener[E_21]): any; prependListener(event: E_22, listener: import("../puppet/events.js").PuppetEventListener[E_22]): any; prependOnceListener(event: E_23, listener: import("../puppet/events.js").PuppetEventListener[E_23]): any; off(event: E_24, listener: import("../puppet/events.js").PuppetEventListener[E_24]): any; removeAllListeners(event?: E_25 | undefined): any; removeListener(event: E_26, listener: import("../puppet/events.js").PuppetEventListener[E_26]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; }) & (abstract new (...args: any[]) => { roomMemberList(roomId: string): Promise; roomMemberRawPayload(roomId: string, contactId: string): Promise; roomMemberRawPayloadParser(rawPayload: any): Promise; roomMemberSearch(roomId: string, query: string | symbol | import("../schemas/room.js").RoomMemberQueryFilter): Promise; roomMemberPayload(roomId: string, memberId: string): Promise; roomMemberPayloadDirty(id: string): Promise; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start: (() => Promise) & (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise) & (() => Promise); emit(event: any, ...args: any): boolean; addListener(event: E_27, listener: import("../puppet/events.js").PuppetEventListener[E_27]): any; on(event: E_28, listener: import("../puppet/events.js").PuppetEventListener[E_28]): any; once(event: E_29, listener: import("../puppet/events.js").PuppetEventListener[E_29]): any; prependListener(event: E_30, listener: import("../puppet/events.js").PuppetEventListener[E_30]): any; prependOnceListener(event: E_31, listener: import("../puppet/events.js").PuppetEventListener[E_31]): any; off(event: E_32, listener: import("../puppet/events.js").PuppetEventListener[E_32]): any; removeAllListeners(event?: E_33 | undefined): any; removeListener(event: E_34, listener: import("../puppet/events.js").PuppetEventListener[E_34]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; contactSelfName(name: string): Promise; contactSelfQRCode(): Promise; contactSelfSignature(signature: string): Promise; contactAlias(contactId: string): Promise; contactAlias(contactId: string, alias: string | null): Promise; contactAvatar(contactId: string): Promise; contactAvatar(contactId: string, file: FileBoxInterface): Promise; contactPhone(contactId: string, phoneList: string[]): Promise; contactCorporationRemark(contactId: string, corporationRemark: string | null): Promise; contactDescription(contactId: string, description: string | null): Promise; contactList(): Promise; contactRawPayload(contactId: string): Promise; contactRawPayloadParser(rawPayload: any): Promise; /** * * RoomMember * */ contactSearch(query?: string | import("../schemas/contact.js").ContactQueryFilter | undefined, searchIdList?: string[] | undefined): Promise; contactQueryFilterFactory(query: import("../schemas/contact.js").ContactQueryFilter): import("../schemas/contact.js").ContactPayloadFilterFunction; contactValidate(contactId: string): Promise; contactPayloadCache(contactId: string): import("../schemas/contact.js").ContactPayload | undefined; contactPayload(contactId: string): Promise; contactPayloadDirty(id: string): Promise; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: DirtyType, id: string): Promise; __currentUserId?: string | undefined; readonly currentUserId: string; readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; login(userId: string): void; logout(reason?: string): Promise; selfId(): string; logonoff(): boolean; })>(mixinBase: MixinBase) => (abstract new (...args: any[]) => { /** * * Room * */ roomAdd(roomId: string, contactId: string, inviteOnly?: boolean): Promise; roomAvatar(roomId: string): Promise; roomCreate(contactIdList: string[], topic?: string): Promise; roomDel(roomId: string, contactId: string): Promise; roomList(): Promise; roomQRCode(roomId: string): Promise; roomQuit(roomId: string): Promise; roomTopic(roomId: string): Promise; roomTopic(roomId: string, topic: string): Promise; /** * Issue #155 - https://github.com/wechaty/puppet/issues/155 * * @protected */ roomRawPayload(roomId: string): Promise; /** * Issue #155 - https://github.com/wechaty/puppet/issues/155 * * @protected */ roomRawPayloadParser(rawPayload: any): Promise; /** * * RoomMember * */ roomAnnounce(roomId: string): Promise; /** * * RoomMember * */ roomAnnounce(roomId: string, text: string): Promise; roomSearch(query?: RoomQueryFilter): Promise; /** * Issue #155 - https://github.com/wechaty/puppet/issues/155 * * @protected */ roomQueryFilterFactory(query: RoomQueryFilter): RoomPayloadFilterFunction; /** * Check a Room Id if it's still valid. * For example: talk to the server, and see if it should be deleted in the local cache. */ roomValidate(roomId: string): Promise; /** * Issue #155 - https://github.com/wechaty/puppet/issues/155 * * @protected */ roomPayloadCache(roomId: string): undefined | RoomPayload; roomPayload(roomId: string): Promise; roomPayloadDirty(id: string): Promise; readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start: (() => Promise) & (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise) & (() => Promise); emit(event: any, ...args: any): boolean; addListener(event: E_35, listener: import("../puppet/events.js").PuppetEventListener[E_35]): any; on(event: E_36, listener: import("../puppet/events.js").PuppetEventListener[E_36]): any; once(event: E_37, listener: import("../puppet/events.js").PuppetEventListener[E_37]): any; prependListener(event: E_38, listener: import("../puppet/events.js").PuppetEventListener[E_38]): any; prependOnceListener(event: E_39, listener: import("../puppet/events.js").PuppetEventListener[E_39]): any; off(event: E_40, listener: import("../puppet/events.js").PuppetEventListener[E_40]): any; removeAllListeners(event?: E_41 | undefined): any; removeListener(event: E_42, listener: import("../puppet/events.js").PuppetEventListener[E_42]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; contactSelfName(name: string): Promise; contactSelfQRCode(): Promise; contactSelfSignature(signature: string): Promise; contactAlias(contactId: string): Promise; contactAlias(contactId: string, alias: string | null): Promise; contactAvatar(contactId: string): Promise; contactAvatar(contactId: string, file: FileBoxInterface): Promise; contactPhone(contactId: string, phoneList: string[]): Promise; contactCorporationRemark(contactId: string, corporationRemark: string | null): Promise; contactDescription(contactId: string, description: string | null): Promise; contactList(): Promise; contactRawPayload(contactId: string): Promise; contactRawPayloadParser(rawPayload: any): Promise; /** * * RoomMember * */ contactSearch(query?: string | import("../schemas/contact.js").ContactQueryFilter | undefined, searchIdList?: string[] | undefined): Promise; contactQueryFilterFactory(query: import("../schemas/contact.js").ContactQueryFilter): import("../schemas/contact.js").ContactPayloadFilterFunction; contactValidate(contactId: string): Promise; contactPayloadCache(contactId: string): import("../schemas/contact.js").ContactPayload | undefined; contactPayload(contactId: string): Promise; contactPayloadDirty(id: string): Promise; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: DirtyType, id: string): Promise; __currentUserId?: string | undefined; readonly currentUserId: string; readonly isLoggedIn: boolean; __authQrCode?: string | undefined; readonly authQrCode: string | undefined; login(userId: string): void; logout(reason?: string): Promise; selfId(): string; logonoff(): boolean; roomMemberList(roomId: string): Promise; roomMemberRawPayload(roomId: string, contactId: string): Promise; roomMemberRawPayloadParser(rawPayload: any): Promise; roomMemberSearch(roomId: string, query: string | symbol | import("../schemas/room.js").RoomMemberQueryFilter): Promise; roomMemberPayload(roomId: string, memberId: string): Promise; roomMemberPayloadDirty(id: string): Promise; }) & MixinBase; declare type RoomMixin = ReturnType; declare type ProtectedPropertyRoomMixin = 'roomPayloadCache' | 'roomQueryFilterFactory' | 'roomRawPayload' | 'roomRawPayloadParser'; export type { RoomMixin, ProtectedPropertyRoomMixin, }; export { roomMixin }; //# sourceMappingURL=room-mixin.d.ts.map