import { DocumentChunk } from '../types/index.js';
import { Document } from '../storage.js';
declare class DocumentService {
    private documents;
    private chunks;
    constructor();
    private loadDocuments;
    private loadChunks;
    private saveDocuments;
    private saveChunks;
    processDocument(fileName: string, fileBuffer: Buffer, mimeType: string, sessionId?: string): Promise<Document>;
    private chunkDocument;
    private generateEmbeddingForText;
    private generateEmbeddingsForChunks;
    regenerateAllEmbeddings(): Promise<void>;
    getEmbeddingModelInfo(): Promise<{
        available: boolean;
        model: string;
        chunksWithEmbeddings: number;
        totalChunks: number;
    }>;
    getDocument(documentId: string): Document | undefined;
    getDocuments(sessionId?: string): Document[];
    getDocumentChunks(documentId: string): DocumentChunk[];
    deleteDocument(documentId: string): boolean;
    searchDocuments(query: string, sessionId?: string, limit?: number): Promise<DocumentChunk[]>;
    private semanticSearchDocuments;
    private keywordSearchDocuments;
    getRelevantContext(query: string, sessionId?: string): Promise<string[]>;
    restoreDocument(document: Document): void;
}
declare const _default: DocumentService;
export default _default;
//# sourceMappingURL=documentService.d.ts.map