import MessageService from '../base/message.js'; import WebhookConnector from './connector.js'; /** * @class * Handles the socket connection * Also dispatch the action to handle data */ declare class WebhookService extends MessageService { id: string; connector: WebhookConnector; constructor(url: string); /** * @method * Create a connection with socketIO */ connect(config: RequestInit): Promise; /** * @method * Dispose the socket connection */ disconnect(config: RequestInit): Promise; /** * @method * Handle the messages */ protected message(config: RequestInit, _event?: string): Promise; } export { WebhookService as default };