/** * HTTP Chatbot Client * * Calls a remote chatbot API (e.g., chatter's /api/public/chat) over HTTP. * Maintains multi-turn conversation history per phone number. */ import type { ChatbotConfig } from "../../types"; /** * Send a message to the remote chatbot API and get a response. * * Both no-answer outcomes - a transport or HTTP failure, and a 200 whose * `reply` is empty - resolve the same `chatError` phrase in the caller's * detected language, the one `chat()` uses for its other two paths. They are * one situation from the caller's side (no usable answer), and the reply is * spoken or sent verbatim, so an English literal here would reach a caller * mid-conversation in their own language. * * `languageDir` is threaded in rather than read from a config this module * doesn't receive: `ChatbotConfig` is the remote endpoint's settings, not the * package's. Omitting it falls back to the built-in phrase files. */ export declare function chatViaHTTP(config: ChatbotConfig, phoneNumber: string, message: string, languageDir?: string): Promise;