/** * Author: Huan LI https://github.com/huan * Date: Apr 2020 */ import { WechatyPlugin, Message } from 'wechaty'; import * as matchers from '../../matchers/mod.js'; import * as talkers from '../../talkers/mod.js'; export interface DingDongConfigObject { /** * Whether response to the self message */ self: boolean; /** * Whether response the Room Message with mention self. * Default: true */ mention: boolean; /** * Whether response to the Direct Message * Default: true */ contact: matchers.ContactMatcherOptions; /** * Whether response in the Room * Default: true */ room: matchers.RoomMatcherOptions; ding: matchers.StringMatcherOptions; dong: talkers.MessageTalkerOptions; } export type DingDongConfig = Partial; declare const isMatchConfig: (config: DingDongConfigObject) => (message: Message) => Promise; declare function DingDong(config?: DingDongConfig): WechatyPlugin; export { DingDong, isMatchConfig, }; //# sourceMappingURL=ding-dong.d.ts.map