export declare type ConversationSentMessage = { text: string; metadata?: { language?: string; tts?: 'true' | 'false'; voice_id?: string; }; }; export declare type ConversationAttachment = { type: 'audio'; payload: { src: string; }; } | { type: 'image'; payload: { title?: string; src: string; }; } | { type: 'audio'; payload: { src: string; }; } | { type: 'video'; payload: { title: string; src: string; }; }; export declare type Button = { content_type?: 'text'; title: string; } & ({ type?: 'postback'; payload: string; } | { type?: 'web_url'; url: string; }); export declare type ConversationData = { elements?: any; quick_replies?: Button[]; attachment?: ConversationAttachment[]; }; export declare type ConversationResponse = { recipient_id: string; text: string; buttons?: Button[]; data?: ConversationData; }; export interface TMasdifClient { status(): Promise; createConversation(): Promise; sendMessage(conversationId: string, message: ConversationSentMessage): Promise; conversationHistory(): Promise; } export declare type MasdifClientOptions = { extraHeaders?: { [key: string]: string; }; disableTTS?: boolean; };