import WebhookService from '../../webhook/index.js'; export { BotPayload, Config, Payload } from './types.js'; import '../../base/message.js'; import '../../webhook/connector.js'; /** * @class * handle the socket communication * Also dispatch the action to handle data */ declare class ChatBotConnecter extends WebhookService { /** @property unique id to identify instance of message service and */ private readonly _id; private readonly _url; /** * @constructor * bind this to the super class methods * Bind Methods to use WebhookService class method in them */ constructor(url: string, id: string); /** * @method * Create a connection with socketIO */ _onConnect(payload: Record): Promise; /** * @method * handle the message with socket */ sendMessage(payload: Record): Promise; /** * @method * Release the socket connection */ private _onDisconnect; } export { ChatBotConnecter as default };