import { BotEvent, UserEvent } from '@rasahq/rasa-api'; export interface TemplateAttachment { type: 'template'; payload: { template_type: 'generic'; elements: any[]; }; } export interface ImageAttachment { type: 'image'; payload: { src: string; }; } export declare type Attachment = ImageAttachment | TemplateAttachment; export interface Button { content_type: 'text'; title: string; payload: string; } export interface Response { text?: string; attachment?: Attachment; quick_replies?: Button[]; image?: string; } export declare function createResponse(response: Response): BotEvent; export declare function createMessage(text: string): UserEvent;