/** * Author: Huan LI https://github.com/huan * Date: May 2020 */ import { WechatyPlugin, Message } from 'wechaty'; import { MessageMatcherOptions } from '../matchers/mod.js'; export interface ChatOpsConfig { /** * Chatops Room Id(s) */ room: string; /** * Whether response the Room Message with mention self. * Default: true */ mention?: boolean; /** * Whether response to the Direct Message * Default: true */ contact?: boolean; /** * Blacklist & Whitelist */ blacklist?: MessageMatcherOptions; whitelist?: MessageMatcherOptions; } export declare const isMatchConfig: (config: ChatOpsConfig) => (message: Message) => Promise; export declare function ChatOps(config: ChatOpsConfig): WechatyPlugin; //# sourceMappingURL=chatops.d.ts.map