import type { PuppetOptions } from '../schemas/mod.js'; import { PuppetSkeleton } from './puppet-skeleton.js'; /** * Huan(202111): validateMixin can not put in the piped list, * because it import-ed the `PuppetInterface` which is depended on `PuppetImpl` * which caused circle-dependency. * * TODO: put `validateMixin` back in to piped list */ declare const MixinBase: ((abstract new (...args: any[]) => { readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start(): Promise; stop(): Promise; emit(event: any, ...args: any): boolean; addListener(event: E, listener: import("./events.js").PuppetEventListener[E]): any; on(event: E_1, listener: import("./events.js").PuppetEventListener[E_1]): any; once(event: E_2, listener: import("./events.js").PuppetEventListener[E_2]): any; prependListener(event: E_3, listener: import("./events.js").PuppetEventListener[E_3]): any; prependOnceListener(event: E_4, listener: import("./events.js").PuppetEventListener[E_4]): any; off(event: E_5, listener: import("./events.js").PuppetEventListener[E_5]): any; removeAllListeners(event?: E_6 | undefined): any; removeListener(event: E_7, listener: import("./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("./events.js").PuppetEventListener; }) & { validInterface(target: any): target is import("./puppet-interface.js").PuppetInterface; validInstance(target: any): target is Puppet; valid(target: any): target is import("./puppet-interface.js").PuppetInterface; }) & (abstract new (...args: any[]) => { tap(postId: string, type?: import("../schemas/tap.js").TapType | undefined, tap?: boolean | undefined): Promise; tapSearch(postId: string, query?: import("../schemas/tap.js").TapQueryFilter | undefined, pagination?: import("../schemas/pagination.js").PaginationRequest | undefined): Promise>; readonly id: string; readonly options: 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_11, listener: import("./events.js").PuppetEventListener[E_11]): any; on(event: E_12, listener: import("./events.js").PuppetEventListener[E_12]): any; once(event: E_13, listener: import("./events.js").PuppetEventListener[E_13]): any; prependListener(event: E_14, listener: import("./events.js").PuppetEventListener[E_14]): any; prependOnceListener(event: E_15, listener: import("./events.js").PuppetEventListener[E_15]): any; off(event: E_16, listener: import("./events.js").PuppetEventListener[E_16]): any; removeAllListeners(event?: E_17 | undefined): any; removeListener(event: E_18, listener: import("./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("./events.js").PuppetEventListener; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { sayablePayload(sayableId: string): Promise; readonly id: string; readonly options: 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_19, listener: import("./events.js").PuppetEventListener[E_19]): any; on(event: E_20, listener: import("./events.js").PuppetEventListener[E_20]): any; once(event: E_21, listener: import("./events.js").PuppetEventListener[E_21]): any; prependListener(event: E_22, listener: import("./events.js").PuppetEventListener[E_22]): any; prependOnceListener(event: E_23, listener: import("./events.js").PuppetEventListener[E_23]): any; off(event: E_24, listener: import("./events.js").PuppetEventListener[E_24]): any; removeAllListeners(event?: E_25 | undefined): any; removeListener(event: E_26, listener: import("./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("./events.js").PuppetEventListener; conversationReadMark(conversationId: string, hasRead?: boolean | undefined): Promise; messageContact(messageId: string): Promise; messageFile(messageId: string): Promise; messageImage(messageId: string, imageType: import("../schemas/image.js").ImageType): Promise; messageMiniProgram(messageId: string): Promise; messageUrl(messageId: string): Promise; messageLocation(messageId: string): Promise; messageForward(conversationId: string, messageId: string): Promise; messageSendContact(conversationId: string, contactId: string): Promise; messageSendFile(conversationId: string, file: import("file-box/dist/esm/src/interface.js").FileBoxInterface): Promise; messageSendLocation(conversationId: string, locationPayload: import("../schemas/location.js").LocationPayload): Promise; messageSendMiniProgram(conversationId: string, miniProgramPayload: import("../schemas/mini-program.js").MiniProgramPayload): Promise; messageSendPost(conversationId: string, postPayload: import("../schemas/post.js").PostPayload): Promise; messageSendText(conversationId: string, text: string, mentionIdList?: string[] | undefined): Promise; messageSendUrl(conversationId: string, urlLinkPayload: import("../schemas/url-link.js").UrlLinkPayload): Promise; messageRecall(messageId: string): Promise; messageRawPayload(messageId: string): Promise; messageRawPayloadParser(rawPayload: any): Promise; messagePayloadCache(messageId: string): import("../schemas/message.js").MessagePayload | undefined; messagePayload(messageId: string): Promise; messageList(): string[]; messageSearch(query?: import("../schemas/message.js").MessageQueryFilter | undefined): Promise; messageQueryFilterFactory(query: import("../schemas/message.js").MessageQueryFilter): import("../schemas/message.js").MessagePayloadFilterFunction; messagePayloadDirty(id: string): Promise; messageSend(conversationId: string, sayable: import("../schemas/sayable.js").SayablePayload): Promise; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; postRawPayload(postId: string): Promise; postRawPayloadParser(rawPayload: any): Promise; postPayloadCache(postId: string): import("../schemas/post.js").PostPayload | undefined; postPayload(postId: string): Promise; postPublish(payload: import("../schemas/post.js").PostPayload): Promise; postSearch(filter: import("../schemas/post.js").PostQueryFilter, pagination?: import("../schemas/pagination.js").PaginationRequest | undefined): Promise>; postList(): string[]; postPayloadDirty(id: string): Promise; }) & (abstract new (...args: any[]) => { postRawPayload(postId: string): Promise; postRawPayloadParser(rawPayload: any): Promise; postPayloadCache(postId: string): import("../schemas/post.js").PostPayload | undefined; postPayload(postId: string): Promise; postPublish(payload: import("../schemas/post.js").PostPayload): Promise; postSearch(filter: import("../schemas/post.js").PostQueryFilter, pagination?: import("../schemas/pagination.js").PaginationRequest | undefined): Promise>; postList(): string[]; postPayloadDirty(id: string): Promise; readonly id: string; readonly options: 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("./events.js").PuppetEventListener[E_27]): any; on(event: E_28, listener: import("./events.js").PuppetEventListener[E_28]): any; once(event: E_29, listener: import("./events.js").PuppetEventListener[E_29]): any; prependListener(event: E_30, listener: import("./events.js").PuppetEventListener[E_30]): any; prependOnceListener(event: E_31, listener: import("./events.js").PuppetEventListener[E_31]): any; off(event: E_32, listener: import("./events.js").PuppetEventListener[E_32]): any; removeAllListeners(event?: E_33 | undefined): any; removeListener(event: E_34, listener: import("./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("./events.js").PuppetEventListener; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { readyIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator; start(): Promise; stop(): Promise; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_35, listener: import("./events.js").PuppetEventListener[E_35]): any; on(event: E_36, listener: import("./events.js").PuppetEventListener[E_36]): any; once(event: E_37, listener: import("./events.js").PuppetEventListener[E_37]): any; prependListener(event: E_38, listener: import("./events.js").PuppetEventListener[E_38]): any; prependOnceListener(event: E_39, listener: import("./events.js").PuppetEventListener[E_39]): any; off(event: E_40, listener: import("./events.js").PuppetEventListener[E_40]): any; removeAllListeners(event?: E_41 | undefined): any; removeListener(event: E_42, listener: import("./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("./events.js").PuppetEventListener; }) & ((abstract new (...args: any[]) => { readonly __counter: number; readonly __watchdog: import("../agents/watchdog-agent.js").WatchdogAgent; start(): Promise; stop(): Promise; state: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface; __serviceCtlResettingIndicator: import("state-switch/dist/esm/src/busy-indicator.js").BusyIndicator; __serviceCtlLogger: import("brolog/dist/esm/src/logger.js").Loggable; reset(): Promise; onStart(): Promise; onStop(): Promise; emit: ((..._: any[]) => any) & ((event: any, ...args: any) => boolean); readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; addListener(event: E_43, listener: import("./events.js").PuppetEventListener[E_43]): any; on(event: E_44, listener: import("./events.js").PuppetEventListener[E_44]): any; once(event: E_45, listener: import("./events.js").PuppetEventListener[E_45]): any; prependListener(event: E_46, listener: import("./events.js").PuppetEventListener[E_46]): any; prependOnceListener(event: E_47, listener: import("./events.js").PuppetEventListener[E_47]): any; off(event: E_48, listener: import("./events.js").PuppetEventListener[E_48]): any; removeAllListeners(event?: E_49 | undefined): any; removeListener(event: E_50, listener: import("./events.js").PuppetEventListener[E_50]): 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("./events.js").PuppetEventListener; }) & { VERSION: string; }) & (abstract new (...args: any[]) => { toString(): string; ding(data?: string | undefined): void; name(): string; version(): string; wechatyVersionRange(strict?: boolean): string; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start: (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise); emit(event: any, ...args: any): boolean; addListener(event: E_51, listener: import("./events.js").PuppetEventListener[E_51]): any; on(event: E_52, listener: import("./events.js").PuppetEventListener[E_52]): any; once(event: E_53, listener: import("./events.js").PuppetEventListener[E_53]): any; prependListener(event: E_54, listener: import("./events.js").PuppetEventListener[E_54]): any; prependOnceListener(event: E_55, listener: import("./events.js").PuppetEventListener[E_55]): any; off(event: E_56, listener: import("./events.js").PuppetEventListener[E_56]): any; removeAllListeners(event?: E_57 | undefined): any; removeListener(event: E_58, listener: import("./events.js").PuppetEventListener[E_58]): 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("./events.js").PuppetEventListener; _memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard; readonly memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard; setMemory(memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard): void; }) & (abstract new (...args: any[]) => { conversationReadMark(conversationId: string, hasRead?: boolean | undefined): Promise; messageContact(messageId: string): Promise; messageFile(messageId: string): Promise; messageImage(messageId: string, imageType: import("../schemas/image.js").ImageType): Promise; messageMiniProgram(messageId: string): Promise; messageUrl(messageId: string): Promise; messageLocation(messageId: string): Promise; messageForward(conversationId: string, messageId: string): Promise; messageSendContact(conversationId: string, contactId: string): Promise; messageSendFile(conversationId: string, file: import("file-box/dist/esm/src/interface.js").FileBoxInterface): Promise; messageSendLocation(conversationId: string, locationPayload: import("../schemas/location.js").LocationPayload): Promise; messageSendMiniProgram(conversationId: string, miniProgramPayload: import("../schemas/mini-program.js").MiniProgramPayload): Promise; messageSendPost(conversationId: string, postPayload: import("../schemas/post.js").PostPayload): Promise; messageSendText(conversationId: string, text: string, mentionIdList?: string[] | undefined): Promise; messageSendUrl(conversationId: string, urlLinkPayload: import("../schemas/url-link.js").UrlLinkPayload): Promise; messageRecall(messageId: string): Promise; messageRawPayload(messageId: string): Promise; messageRawPayloadParser(rawPayload: any): Promise; messagePayloadCache(messageId: string): import("../schemas/message.js").MessagePayload | undefined; messagePayload(messageId: string): Promise; messageList(): string[]; messageSearch(query?: import("../schemas/message.js").MessageQueryFilter | undefined): Promise; messageQueryFilterFactory(query: import("../schemas/message.js").MessageQueryFilter): import("../schemas/message.js").MessagePayloadFilterFunction; messagePayloadDirty(id: string): Promise; messageSend(conversationId: string, sayable: import("../schemas/sayable.js").SayablePayload): Promise; readonly id: string; readonly options: 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_59, listener: import("./events.js").PuppetEventListener[E_59]): any; on(event: E_60, listener: import("./events.js").PuppetEventListener[E_60]): any; once(event: E_61, listener: import("./events.js").PuppetEventListener[E_61]): any; prependListener(event: E_62, listener: import("./events.js").PuppetEventListener[E_62]): any; prependOnceListener(event: E_63, listener: import("./events.js").PuppetEventListener[E_63]): any; off(event: E_64, listener: import("./events.js").PuppetEventListener[E_64]): any; removeAllListeners(event?: E_65 | undefined): any; removeListener(event: E_66, listener: import("./events.js").PuppetEventListener[E_66]): 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("./events.js").PuppetEventListener; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { roomInvitationPayloadCache(roomInvitationId: string): import("../schemas/room-invitation.js").RoomInvitationPayload | undefined; roomInvitationAccept(roomInvitationId: string): Promise; roomInvitationRawPayload(roomInvitationId: string): Promise; roomInvitationRawPayloadParser(rawPayload: any): Promise; roomInvitationPayload(roomInvitationId: string): Promise; roomInvitationPayload(roomInvitationId: string, newPayload: import("../schemas/room-invitation.js").RoomInvitationPayload): Promise; readonly id: string; readonly options: 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_67, listener: import("./events.js").PuppetEventListener[E_67]): any; on(event: E_68, listener: import("./events.js").PuppetEventListener[E_68]): any; once(event: E_69, listener: import("./events.js").PuppetEventListener[E_69]): any; prependListener(event: E_70, listener: import("./events.js").PuppetEventListener[E_70]): any; prependOnceListener(event: E_71, listener: import("./events.js").PuppetEventListener[E_71]): any; off(event: E_72, listener: import("./events.js").PuppetEventListener[E_72]): any; removeAllListeners(event?: E_73 | undefined): any; removeListener(event: E_74, listener: import("./events.js").PuppetEventListener[E_74]): 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("./events.js").PuppetEventListener; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { tagContactAdd(tagId: string, contactId: string): Promise; tagContactDelete(tagId: string): Promise; tagContactList(contactId: string): Promise; tagContactList(): Promise; tagContactRemove(tagId: string, contactId: string): Promise; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start(): Promise; stop(): Promise; emit(event: any, ...args: any): boolean; addListener(event: E_75, listener: import("./events.js").PuppetEventListener[E_75]): any; on(event: E_76, listener: import("./events.js").PuppetEventListener[E_76]): any; once(event: E_77, listener: import("./events.js").PuppetEventListener[E_77]): any; prependListener(event: E_78, listener: import("./events.js").PuppetEventListener[E_78]): any; prependOnceListener(event: E_79, listener: import("./events.js").PuppetEventListener[E_79]): any; off(event: E_80, listener: import("./events.js").PuppetEventListener[E_80]): any; removeAllListeners(event?: E_81 | undefined): any; removeListener(event: E_82, listener: import("./events.js").PuppetEventListener[E_82]): 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("./events.js").PuppetEventListener; }) & (abstract new (...args: any[]) => { friendshipAccept(friendshipId: string): Promise; friendshipAdd(contactId: string, option?: import("../schemas/friendship.js").FriendshipAddOptions | undefined): Promise; friendshipSearchPhone(phone: string): Promise; friendshipSearchHandle(handle: string): Promise; friendshipSearchWeixin(weixin: string): Promise; friendshipRawPayload(friendshipId: string): Promise; friendshipRawPayloadParser(rawPayload: any): Promise; friendshipSearch(searchQueryFilter: import("../schemas/friendship.js").FriendshipSearchQueryFilter): Promise; friendshipPayloadCache(friendshipId: string): import("../schemas/friendship.js").FriendshipPayload | undefined; friendshipPayload(friendshipId: string): Promise; friendshipPayload(friendshipId: string, newPayload: import("../schemas/friendship.js").FriendshipPayload): Promise; friendshipPayloadDirty(id: string): Promise; readonly id: string; readonly options: 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_83, listener: import("./events.js").PuppetEventListener[E_83]): any; on(event: E_84, listener: import("./events.js").PuppetEventListener[E_84]): any; once(event: E_85, listener: import("./events.js").PuppetEventListener[E_85]): any; prependListener(event: E_86, listener: import("./events.js").PuppetEventListener[E_86]): any; prependOnceListener(event: E_87, listener: import("./events.js").PuppetEventListener[E_87]): any; off(event: E_88, listener: import("./events.js").PuppetEventListener[E_88]): any; removeAllListeners(event?: E_89 | undefined): any; removeListener(event: E_90, listener: import("./events.js").PuppetEventListener[E_90]): 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("./events.js").PuppetEventListener; cache: import("../agents/cache-agent.js").CacheAgent; __cacheMixinCleanCallbackList: (() => void)[]; dirtyPayload(type: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { roomAdd(roomId: string, contactId: string, inviteOnly?: boolean | undefined): Promise; roomAvatar(roomId: string): Promise; roomCreate(contactIdList: string[], topic?: string | undefined): 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; roomRawPayload(roomId: string): Promise; roomRawPayloadParser(rawPayload: any): Promise; roomAnnounce(roomId: string): Promise; roomAnnounce(roomId: string, text: string): Promise; roomSearch(query?: import("../schemas/room.js").RoomQueryFilter | undefined): Promise; roomQueryFilterFactory(query: import("../schemas/room.js").RoomQueryFilter): import("../schemas/room.js").RoomPayloadFilterFunction; roomValidate(roomId: string): Promise; roomPayloadCache(roomId: string): import("../schemas/room.js").RoomPayload | undefined; roomPayload(roomId: string): Promise; roomPayloadDirty(id: string): Promise; readonly id: string; readonly options: 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_91, listener: import("./events.js").PuppetEventListener[E_91]): any; on(event: E_92, listener: import("./events.js").PuppetEventListener[E_92]): any; once(event: E_93, listener: import("./events.js").PuppetEventListener[E_93]): any; prependListener(event: E_94, listener: import("./events.js").PuppetEventListener[E_94]): any; prependOnceListener(event: E_95, listener: import("./events.js").PuppetEventListener[E_95]): any; off(event: E_96, listener: import("./events.js").PuppetEventListener[E_96]): any; removeAllListeners(event?: E_97 | undefined): any; removeListener(event: E_98, listener: import("./events.js").PuppetEventListener[E_98]): 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("./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: import("file-box/dist/esm/src/interface.js").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; 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: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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, memberIdList?: string[] | undefined): Promise; roomMemberPayload(roomId: string, memberId: string): Promise; roomMemberPayloadDirty(id: string): Promise; }) & (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, memberIdList?: string[] | undefined): Promise; roomMemberPayload(roomId: string, memberId: string): Promise; roomMemberPayloadDirty(id: string): Promise; readonly id: string; readonly options: 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_99, listener: import("./events.js").PuppetEventListener[E_99]): any; on(event: E_100, listener: import("./events.js").PuppetEventListener[E_100]): any; once(event: E_101, listener: import("./events.js").PuppetEventListener[E_101]): any; prependListener(event: E_102, listener: import("./events.js").PuppetEventListener[E_102]): any; prependOnceListener(event: E_103, listener: import("./events.js").PuppetEventListener[E_103]): any; off(event: E_104, listener: import("./events.js").PuppetEventListener[E_104]): any; removeAllListeners(event?: E_105 | undefined): any; removeListener(event: E_106, listener: import("./events.js").PuppetEventListener[E_106]): 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("./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: import("file-box/dist/esm/src/interface.js").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; 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: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").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; }) & (abstract new (...args: any[]) => { 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: import("file-box/dist/esm/src/interface.js").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; 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: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").DirtyType, id: string): Promise; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_107, listener: import("./events.js").PuppetEventListener[E_107]): any; on(event: E_108, listener: import("./events.js").PuppetEventListener[E_108]): any; once(event: E_109, listener: import("./events.js").PuppetEventListener[E_109]): any; prependListener(event: E_110, listener: import("./events.js").PuppetEventListener[E_110]): any; prependOnceListener(event: E_111, listener: import("./events.js").PuppetEventListener[E_111]): any; off(event: E_112, listener: import("./events.js").PuppetEventListener[E_112]): any; removeAllListeners(event?: E_113 | undefined): any; removeListener(event: E_114, listener: import("./events.js").PuppetEventListener[E_114]): 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("./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: import("../schemas/dirty.js").DirtyType, id: string): void; onDirty({ payloadType, payloadId, }: import("../schemas/event.js").EventDirtyPayload): void; __dirtyPayloadAwait(type: import("../schemas/dirty.js").DirtyType, id: string): Promise; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_115, listener: import("./events.js").PuppetEventListener[E_115]): any; on(event: E_116, listener: import("./events.js").PuppetEventListener[E_116]): any; once(event: E_117, listener: import("./events.js").PuppetEventListener[E_117]): any; prependListener(event: E_118, listener: import("./events.js").PuppetEventListener[E_118]): any; prependOnceListener(event: E_119, listener: import("./events.js").PuppetEventListener[E_119]): any; off(event: E_120, listener: import("./events.js").PuppetEventListener[E_120]): any; removeAllListeners(event?: E_121 | undefined): any; removeListener(event: E_122, listener: import("./events.js").PuppetEventListener[E_122]): 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("./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: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_123, listener: import("./events.js").PuppetEventListener[E_123]): any; on(event: E_124, listener: import("./events.js").PuppetEventListener[E_124]): any; once(event: E_125, listener: import("./events.js").PuppetEventListener[E_125]): any; prependListener(event: E_126, listener: import("./events.js").PuppetEventListener[E_126]): any; prependOnceListener(event: E_127, listener: import("./events.js").PuppetEventListener[E_127]): any; off(event: E_128, listener: import("./events.js").PuppetEventListener[E_128]): any; removeAllListeners(event?: E_129 | undefined): any; removeListener(event: E_130, listener: import("./events.js").PuppetEventListener[E_130]): 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("./events.js").PuppetEventListener; }) & (abstract new (...args: any[]) => { _memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard; readonly memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard; start(): Promise; stop(): Promise; setMemory(memory: import("memory-card/dist/esm/src/memory-card.js").MemoryCard): void; readonly id: string; readonly options: PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emit(event: any, ...args: any): boolean; addListener(event: E_131, listener: import("./events.js").PuppetEventListener[E_131]): any; on(event: E_132, listener: import("./events.js").PuppetEventListener[E_132]): any; once(event: E_133, listener: import("./events.js").PuppetEventListener[E_133]): any; prependListener(event: E_134, listener: import("./events.js").PuppetEventListener[E_134]): any; prependOnceListener(event: E_135, listener: import("./events.js").PuppetEventListener[E_135]): any; off(event: E_136, listener: import("./events.js").PuppetEventListener[E_136]): any; removeAllListeners(event?: E_137 | undefined): any; removeListener(event: E_138, listener: import("./events.js").PuppetEventListener[E_138]): 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("./events.js").PuppetEventListener; }) & typeof PuppetSkeleton; /** * * Puppet Base Class * * See: https://github.com/wechaty/wechaty/wiki/Puppet * */ declare abstract class Puppet extends MixinBase { /** * Must overwrite by child class to identify their version * * Huan(202111): we must put the `VERSION` in the outter side of all the Mixins * because we do not know which Mixin will override the `VERSION` */ static readonly VERSION: string; constructor(options?: PuppetOptions); /** * The child puppet provider should put all start code inside `onStart()` * becasue the `onStart()` with be called by `start()` inside state management. * * The `try {} catch () {}` is not necessary inside `onStart()` * because it will be handled by the framework. * * `onStop()` is the same as the `onStart()` * * @see https://github.com/wechaty/puppet/issues/163 */ abstract onStart(): Promise; abstract onStop(): Promise; } export { Puppet, }; //# sourceMappingURL=puppet-abstract.d.ts.map