import { Ref } from 'vue'; import { RAGDocument, RetrievalResult } from '../utils/rag'; export interface UseRAGOptions { chunkSize?: number; overlap?: number; topK?: number; storageKey?: string; maxDocumentTokens?: number; autoSave?: boolean; } export interface UseRAGReturn { knowledgeBase: Ref; isProcessing: Ref; error: Ref; addDocument: (file: File) => Promise; addUrl: (url: string, name?: string) => Promise; addText: (text: string, name: string) => Promise; removeDocument: (documentId: string) => void; clearKnowledgeBase: () => void; retrieveContext: (query: string, topK?: number) => RetrievalResult; getDocument: (documentId: string) => RAGDocument | undefined; totalDocuments: Ref; totalChunks: Ref; } /** * Composable for RAG (Retrieval-Augmented Generation) functionality * Manages knowledge base, document processing, and context retrieval */ export declare function useRAG(options?: UseRAGOptions): UseRAGReturn;