UNPKG

@juzi/wechaty

Version:

Wechaty is a RPA SDK for Chatbot Makers.

491 lines 44.6 kB
import type { WechatyPlugin, WechatyPluginUninstaller } from '../plugin.js'; import type { WechatySkeleton } from '../wechaty/mod.js'; interface Plugable { use(...plugins: (WechatyPlugin | WechatyPlugin[])[]): WechatyPluginUninstaller; } declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract new (...args: any[]) => { wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emitError(e: any): void; emit(event: any, ...args: any): boolean; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; init(): Promise<void>; start(): Promise<void>; stop(): Promise<void>; on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any; once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any; prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any; prependOnceListener<E_3 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_3, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_3]): any; off<E_4 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_4, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_4]): any; removeAllListeners<E_5 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_5 | undefined): any; removeListener<E_6 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_6, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_6]): any; eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; }) & ((abstract new (...args: any[]) => { toString(): string; /** * @param {WechatyPlugin[]} plugins - The plugins you want to use * * @return {WechatyInterface} - this for chaining, * * @desc * For wechaty ecosystem, allow user to define a 3rd party plugin for the all wechaty instances * * @example * // Report all chat message to my server. * * function WechatyReportPlugin(options: { url: string }) { * return function (this: Wechaty) { * this.on('message', message => http.post(options.url, { data: message })) * } * } * * bot.use(WechatyReportPlugin({ url: 'http://somewhere.to.report.your.data.com' }) */ name(): string; version(): string; sleep(milliseconds: number): Promise<void>; ding(data?: string | undefined): void; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any; once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any; prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any; prependOnceListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any; off<E_14 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_14, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_14]): any; removeAllListeners<E_15 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_15 | undefined): any; removeListener<E_16 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_16, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_16]): any; emit: (<E_17 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_17, ...args: import("typed-emitter").Arguments<import("../schemas/wechaty-events.js").WechatyEventListeners[E_17]>) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined; readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface; readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface; __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator; __puppetMixinInited: boolean; ready(): Promise<void>; __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void; __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined; __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined; __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined; __wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined; __wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined; __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined; __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined; __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined; __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined; __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined; __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined; __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined; __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined; __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined; __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined; __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined; __wechatifiedPremiumOnlineAppointmentCard?: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor | undefined; __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined; __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined; __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined; __wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined; __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined; __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined; __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined; readonly Contact: import("../user-modules/contact.js").ContactConstructor; readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor; readonly Delay: import("../user-modules/delay.js").DelayConstructor; readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor; readonly Image: import("../user-modules/image.js").ImageConstructor; readonly Location: import("../user-modules/location.js").LocationConstructor; readonly Message: import("../user-modules/message.js").MessageConstructor; readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor; readonly Post: import("../user-modules/post.js").PostConstructor; readonly Room: import("../user-modules/room.js").RoomConstructor; readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor; readonly Tag: import("../user-modules/tag.js").TagConstructor; readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor; readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor; readonly Channel: import("../user-modules/channel.js").ChannelConstructor; readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor; readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor; readonly PremiumOnlineAppointmentCard: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor; readonly Moment: import("../user-modules/moment.js").MomentConstructor; readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor; readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor; readonly Wecom: import("../user-modules/wecom.js").WecomConstructor; readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor; readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor; readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor; readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emitError(e: any): void; __io?: import("../io.js").Io | undefined; readonly io: import("../io.js").Io; __ioToken?: string | undefined; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; }) & ((abstract new (...args: any[]) => { __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined; readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface; readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface; __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator; __puppetMixinInited: boolean; start(): Promise<void>; stop(): Promise<void>; ready(): Promise<void>; init(): Promise<void>; __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void; __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined; __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined; __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined; __wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined; __wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined; __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined; __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined; __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined; __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined; __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined; __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined; __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined; __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined; __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined; __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined; __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined; __wechatifiedPremiumOnlineAppointmentCard?: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor | undefined; __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined; __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined; __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined; __wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined; __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined; __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined; __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined; readonly Contact: import("../user-modules/contact.js").ContactConstructor; readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor; readonly Delay: import("../user-modules/delay.js").DelayConstructor; readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor; readonly Image: import("../user-modules/image.js").ImageConstructor; readonly Location: import("../user-modules/location.js").LocationConstructor; readonly Message: import("../user-modules/message.js").MessageConstructor; readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor; readonly Post: import("../user-modules/post.js").PostConstructor; readonly Room: import("../user-modules/room.js").RoomConstructor; readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor; readonly Tag: import("../user-modules/tag.js").TagConstructor; readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor; readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor; readonly Channel: import("../user-modules/channel.js").ChannelConstructor; readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor; readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor; readonly PremiumOnlineAppointmentCard: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor; readonly Moment: import("../user-modules/moment.js").MomentConstructor; readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor; readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor; readonly Wecom: import("../user-modules/wecom.js").WecomConstructor; readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor; readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor; readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor; readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any; once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any; prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any; prependOnceListener<E_21 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_21, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_21]): any; off<E_22 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_22, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_22]): any; removeAllListeners<E_23 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_23 | undefined): any; removeListener<E_24 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_24, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_24]): any; emit: (<E_17 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_17, ...args: import("typed-emitter").Arguments<import("../schemas/wechaty-events.js").WechatyEventListeners[E_17]>) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emitError(e: any): void; __io?: import("../io.js").Io | undefined; readonly io: import("../io.js").Io; __ioToken?: string | undefined; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; }) & ((abstract new (...args: any[]) => { __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined; __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined; __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined; __wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined; __wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined; __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined; __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined; __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined; __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined; __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined; __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined; __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined; __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined; __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined; __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined; __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined; __wechatifiedPremiumOnlineAppointmentCard?: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor | undefined; __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined; __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined; __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined; __wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined; __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined; __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined; __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined; readonly Contact: import("../user-modules/contact.js").ContactConstructor; readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor; readonly Delay: import("../user-modules/delay.js").DelayConstructor; readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor; readonly Image: import("../user-modules/image.js").ImageConstructor; readonly Location: import("../user-modules/location.js").LocationConstructor; readonly Message: import("../user-modules/message.js").MessageConstructor; readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor; readonly Post: import("../user-modules/post.js").PostConstructor; readonly Room: import("../user-modules/room.js").RoomConstructor; readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor; readonly Tag: import("../user-modules/tag.js").TagConstructor; readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor; readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor; readonly Channel: import("../user-modules/channel.js").ChannelConstructor; readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor; readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor; readonly PremiumOnlineAppointmentCard: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor; readonly Moment: import("../user-modules/moment.js").MomentConstructor; readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor; readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor; readonly Wecom: import("../user-modules/wecom.js").WecomConstructor; readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor; readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor; readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor; readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor; init(): Promise<void>; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; start(): Promise<void>; stop(): Promise<void>; on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any; once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any; prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any; prependOnceListener<E_28 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_28, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_28]): any; off<E_29 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_29, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_29]): any; removeAllListeners<E_30 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_30 | undefined): any; removeListener<E_31 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_31, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_31]): any; emit<E_17 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_17, ...args: import("typed-emitter").Arguments<import("../schemas/wechaty-events.js").WechatyEventListeners[E_17]>): boolean; eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; }) & ((abstract new (...args: any[]) => { __io?: import("../io.js").Io | undefined; readonly io: import("../io.js").Io; __ioToken?: string | undefined; start(): Promise<void>; stop(): Promise<void>; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; init(): Promise<void>; on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any; once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any; prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any; prependOnceListener<E_35 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_35, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_35]): any; off<E_36 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_36, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_36]): any; removeAllListeners<E_37 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_37 | undefined): any; removeListener<E_38 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_38, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_38]): any; emit: (<E_17 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_17, ...args: import("typed-emitter").Arguments<import("../schemas/wechaty-events.js").WechatyEventListeners[E_17]>) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emitError(e: any): void; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; })>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => { /** * @param {WechatyPlugin[]} plugins - The plugins you want to use * * @return {WechatyInterface} - this for chaining, * * @desc * For wechaty ecosystem, allow user to define a 3rd party plugin for the all wechaty instances * * @example * // Report all chat message to my server. * * function WechatyReportPlugin(options: { url: string }) { * return function (this: Wechaty) { * this.on('message', message => http.post(options.url, { data: message })) * } * } * * bot.use(WechatyReportPlugin({ url: 'http://somewhere.to.report.your.data.com' }) */ use(...plugins: (WechatyPlugin | WechatyPlugin[])[]): WechatyPluginUninstaller; readonly log: import("brolog/dist/esm/src/logger.js").Loggable; readonly id: string; __memory?: import("memory-card").MemoryCard | undefined; readonly memory: import("memory-card").MemoryCard; __options: import("../schemas/wechaty-options.js").WechatyOptions; init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>); on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any; addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any; once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any; prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any; prependOnceListener<E_42 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_42, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_42]): any; off<E_43 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_43, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_43]): any; removeAllListeners<E_44 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event?: E_44 | undefined): any; removeListener<E_45 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_45, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_45]): any; emit: (<E_17 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_17, ...args: import("typed-emitter").Arguments<import("../schemas/wechaty-events.js").WechatyEventListeners[E_17]>) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners<E_7 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_7): Function[]; listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[]; listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../schemas/wechaty-events.js").WechatyEventListeners; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; emitError(e: any): void; toString: (() => string) & (() => string); /** * @param {WechatyPlugin[]} plugins - The plugins you want to use * * @return {WechatyInterface} - this for chaining, * * @desc * For wechaty ecosystem, allow user to define a 3rd party plugin for the all wechaty instances * * @example * // Report all chat message to my server. * * function WechatyReportPlugin(options: { url: string }) { * return function (this: Wechaty) { * this.on('message', message => http.post(options.url, { data: message })) * } * } * * bot.use(WechatyReportPlugin({ url: 'http://somewhere.to.report.your.data.com' }) */ name(): string; version(): string; sleep(milliseconds: number): Promise<void>; ding(data?: string | undefined): void; __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined; readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface; readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface; __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator; __puppetMixinInited: boolean; ready(): Promise<void>; __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void; __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined; __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined; __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined; __wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined; __wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined; __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined; __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined; __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined; __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined; __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined; __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined; __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined; __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined; __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined; __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined; __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined; __wechatifiedPremiumOnlineAppointmentCard?: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor | undefined; __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined; __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined; __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined; __wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined; __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined; __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined; __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined; readonly Contact: import("../user-modules/contact.js").ContactConstructor; readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor; readonly Delay: import("../user-modules/delay.js").DelayConstructor; readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor; readonly Image: import("../user-modules/image.js").ImageConstructor; readonly Location: import("../user-modules/location.js").LocationConstructor; readonly Message: import("../user-modules/message.js").MessageConstructor; readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor; readonly Post: import("../user-modules/post.js").PostConstructor; readonly Room: import("../user-modules/room.js").RoomConstructor; readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor; readonly Tag: import("../user-modules/tag.js").TagConstructor; readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor; readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor; readonly Channel: import("../user-modules/channel.js").ChannelConstructor; readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor; readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor; readonly PremiumOnlineAppointmentCard: import("../user-modules/premium-online-appointment-card.js").PremiumOnlineAppointmentCardConstructor; readonly Moment: import("../user-modules/moment.js").MomentConstructor; readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor; readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor; readonly Wecom: import("../user-modules/wecom.js").WecomConstructor; readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor; readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor; readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor; readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor; __io?: import("../io.js").Io | undefined; readonly io: import("../io.js").Io; __ioToken?: string | undefined; }) & { readonly log: import("brolog/dist/esm/src/logger.js").Loggable; }) & MixinBase; declare type PluginMixin = ReturnType<typeof pluginMixin>; declare type ProtectedPropertyPluginMixin = never; export { type Plugable, type PluginMixin, type ProtectedPropertyPluginMixin, pluginMixin, }; //# sourceMappingURL=plugin-mixin.d.ts.map