UNPKG

aspirechat

Version:

A highly customizable React chatbot component with extensive configuration options

11 lines (10 loc) 531 B
import type { ChatMessage } from "../hooks/useChat"; /** * Creates a bot response message object */ export declare function createChatbotResponse(text: string, metadata?: Record<string, any>): Omit<ChatMessage, "id" | "timestamp">; /** * Formats a timestamp according to the provided format */ export declare function formatTimestamp(timestamp: number, format?: string): string; export declare const processResponse: (response: string | ((message: string) => string | Promise<string>), messageText: string) => Promise<string>;