import { ConstructorOptions, EventEmitter2 } from 'eventemitter2'; import { LoggerOptions } from 'winston'; export interface ClientConfig { mode: 'webhook' | 'websocket'; port?: number; key?: string; token: string; /** * 校验码,需要和 */ verifyToken?: string; /** * cookie 客户端模拟模式必填。 */ cookies?: string; logConfig?: LoggerOptions; eventEmitterConfig?: ConstructorOptions; } export interface BaseConnector extends EventEmitter2 { connect: () => Promise; }