import { EventService } from '../lib/core/EventService'; import { Message } from '../model/Message'; import { Response } from '../model/Response'; import { InputSet } from '../model/InputSet'; export declare enum Event { OnInstall = "onInstall", onUninstall = "onUninstall", onNewMessage = "onNewMessage", OnCall = "onCall", OnInteraction = "onInteraction", OnCommand = "onCommand", } export declare abstract class BaseComponent { eventService: EventService; abstract onInstall(accountAddress: String): Promise; abstract onUninstall(accountAddress: String): Promise; abstract onCall(command: string, message: Message): Promise; abstract onInteraction(message: Message, inputSet: InputSet): Promise; abstract onCommand(command: string, message: Message): Promise; abstract onNewMessage(message: Message): Promise; constructor(); onNewEvent(e: any): void; handleResponse(response: Response, message: Message): void; }