import { VectorStore } from '@langchain/core/vectorstores'; import { Document, DocumentInterface } from '@langchain/core/documents'; import { EmbeddingsInterface } from '@langchain/core/embeddings'; import { DataBaseDocstore } from './database'; export declare abstract class ChatLunaSaveableVectorStore extends VectorStore { private _isActive; protected _store?: T; protected _docstore?: DataBaseDocstore; constructor(input: ChatLunaSaveableVectorStoreInput); editDocument(oldDocumentId: string, newDocument: Document): Promise; addVectors(vectors: number[][], documents: DocumentInterface[], options?: AddDocumentOptions): Promise; addDocuments(documents: DocumentInterface[], options?: AddDocumentOptions): Promise; similaritySearchVectorWithScore(query: number[], k: number, filter?: this['FilterType']): Promise<[DocumentInterface, number][]>; save(): Promise; delete(options: ChatLunaSaveableVectorDelete): Promise; _vectorstoreType(): string; reIndex(): Promise; get docstore(): DataBaseDocstore; checkActive(throwError?: boolean): boolean; free(): Promise; } export interface ChatLunaSaveableVectorStoreInput { embeddings: EmbeddingsInterface; docstore: DataBaseDocstore; store: T; } export interface ChatLunaSaveableVectorDelete extends Record { deleteAll?: boolean; documents?: Document[]; ids?: string[]; } export type AddDocumentOptions = Record;