UNPKG

@juzi/wechaty-puppet-whatsapp

Version:
26 lines 1.01 kB
/// <reference types="node" /> import { EventEmitter as EE } from 'ee-ts'; import type { ManagerEvents } from '../manager-event.js'; import type Manager from '../manager.js'; import type { WhatsAppClientType } from '../schema/whatsapp-type.js'; export default class WhatsAppBase extends EE<ManagerEvents> { protected manager: Manager; private static _botId?; private static _whatsAppClient?; protected pendingLogoutEmitTimer?: NodeJS.Timer; get botId(): string | undefined; set botId(value: string | undefined); get whatsAppClient(): WhatsAppClientType | undefined; set whatsAppClient(value: WhatsAppClientType | undefined); constructor(manager: Manager); protected baseStop(): void; getBotId(): string; clearPendingLogoutEmitTimer(): void; getWhatsAppClient(): WhatsAppClientType; /** * MemoryCard Session Section */ setSession(session: string): Promise<void>; clearSession(): Promise<void>; } //# sourceMappingURL=whatsapp-base.d.ts.map