import { type ChatbotTranslate, type ChatbotTranslationKey } from "./i18n.js"; export type ChatRole = "system" | "user" | "assistant"; export interface ChatMessage { role: ChatRole; content: string; } export interface ChatbotUsage { limit: number; used: number; remaining: number; exhausted: boolean; } export interface ChatbotReply { reply: string; model: string; usage: ChatbotUsage; } export interface ChatbotUsageResponse { usage: ChatbotUsage; } export interface ChatbotClientOptions { endpoint?: string; credentials?: RequestCredentials; headers?: HeadersInit | (() => HeadersInit | Promise); fetchFn?: typeof fetch; csrfCookieName?: string; csrfHeaderName?: string; bootstrapCsrf?: boolean; translate?: ChatbotTranslate; } export declare class ChatbotClientError extends Error { status: number; code?: string; usage?: ChatbotUsage; messageKey?: ChatbotTranslationKey; constructor(status: number, message: string, code?: string, usage?: ChatbotUsage, messageKey?: ChatbotTranslationKey); } export declare function getChatbotUsage(options?: ChatbotClientOptions): Promise; export declare function sendChatbotMessage(payload: { message: string; history?: ChatMessage[]; systemPrompt?: string; }, options?: ChatbotClientOptions): Promise; //# sourceMappingURL=client.d.ts.map