import type { WechatyPlugin, WechatyPluginUninstaller } from '../plugin.js'; import type { WechatySkeleton } from '../wechaty/mod.js'; interface Plugable { use(...plugins: (WechatyPlugin | WechatyPlugin[])[]): WechatyPluginUninstaller; } declare const pluginMixin: { 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; start(): Promise; stop(): Promise; 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any; once(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any; prependListener(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any; prependOnceListener(event: E_3, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_3]): any; off(event: E_4, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_4]): any; removeAllListeners(event?: E_5 | undefined): any; removeListener(event: E_6, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_6]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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; 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) & (() => Promise) & (() => Promise); start: (() => Promise) & (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise) & (() => Promise); 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any; once(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any; prependListener(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any; prependOnceListener(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any; off(event: E_14, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_14]): any; removeAllListeners(event?: E_15 | undefined): any; removeListener(event: E_16, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_16]): any; emit: ((event: E_17, ...args: import("typed-emitter").Arguments) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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; __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; __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; /** * Return the function to uninstall all plugins */ 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 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; 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; stop(): Promise; ready(): Promise; init(): Promise; __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; __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; /** * Return the function to uninstall all plugins */ 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 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 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any; once(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any; prependListener(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any; prependOnceListener(event: E_21, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_21]): any; off(event: E_22, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_22]): any; removeAllListeners(event?: E_23 | undefined): any; removeListener(event: E_24, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_24]): any; emit: ((event: E_17, ...args: import("typed-emitter").Arguments) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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; __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; /** * Return the function to uninstall all plugins */ 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 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; init(): Promise; 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; stop(): Promise; 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any; once(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any; prependListener(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any; prependOnceListener(event: E_28, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_28]): any; off(event: E_29, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_29]): any; removeAllListeners(event?: E_30 | undefined): any; removeListener(event: E_31, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_31]): any; emit(event: E_17, ...args: import("typed-emitter").Arguments): boolean; eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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; stop(): Promise; 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; 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any; once(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any; prependListener(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any; prependOnceListener(event: E_35, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_35]): any; off(event: E_36, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_36]): any; removeAllListeners(event?: E_37 | undefined): any; removeListener(event: E_38, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_38]): any; emit: ((event: E_17, ...args: import("typed-emitter").Arguments) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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) & (() => Promise) & (() => Promise); start: (() => Promise) & (() => Promise) & (() => Promise); stop: (() => Promise) & (() => Promise) & (() => Promise); 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" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url", listener: (...args: any[]) => any): any; addListener(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any; once(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any; prependListener(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any; prependOnceListener(event: E_42, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_42]): any; off(event: E_43, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_43]): any; removeAllListeners(event?: E_44 | undefined): any; removeListener(event: E_45, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_45]): any; emit: ((event: E_17, ...args: import("typed-emitter").Arguments) => boolean) & ((event: any, ...args: any) => boolean); eventNames(): (string | symbol)[]; rawListeners(event: E_7): Function[]; listeners(event: E_8): Function[]; listenerCount(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; 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; __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; __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; /** * Return the function to uninstall all plugins */ 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 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; __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; declare type ProtectedPropertyPluginMixin = never; export { type Plugable, type PluginMixin, type ProtectedPropertyPluginMixin, pluginMixin, }; //# sourceMappingURL=plugin-mixin.d.ts.map