export interface ChatRequest { message: string; sessionId?: string; context?: Record; } export interface ChatResponse { id: string; content: string; timestamp: Date; sessionId: string; sources?: Array<{ title: string; content: string; url?: string; score: number; }>; metadata?: Record; } export interface StreamingChatResponse { id: string; content: string; isComplete: boolean; timestamp: Date; sessionId: string; sources?: Array<{ title: string; content: string; url?: string; score: number; }>; error?: string; } export declare class ChatbotAPIError extends Error { status?: number; code?: string; constructor(message: string, status?: number, code?: string); } export declare class ChatbotAPI { private baseUrl; private apiKey?; private sessionId; constructor(baseUrl?: string, apiKey?: string); private generateSessionId; private makeRequest; sendMessage(request: ChatRequest): Promise; streamMessage(request: ChatRequest): AsyncGenerator; getSessionHistory(sessionId?: string): Promise; clearSession(sessionId?: string): Promise; getSessionId(): string; setSessionId(sessionId: string): void; healthCheck(): Promise<{ status: string; timestamp: Date; }>; } export declare function useChatbotAPI(baseUrl?: string, apiKey?: string): ChatbotAPI; export declare function withRetry(operation: () => Promise, maxRetries?: number, delay?: number): Promise; //# sourceMappingURL=chatbot-api.d.ts.map