import type { EmbeddedChunk, IndexedDocument, PapershelfPaths, SearchCandidate } from '../types.js'; export type OpenVectorStoreOptions = { paths: PapershelfPaths; embeddingDimensions: number; rebuild?: boolean; }; export type VectorSearchOptions = { embedding: readonly number[]; limit: number; }; export type VectorStore = { initialize(): Promise; listDocuments(): Promise; deleteDocument(docId: string): Promise; upsertDocument(document: IndexedDocument, chunks: readonly EmbeddedChunk[]): Promise; search(options: VectorSearchOptions): Promise; close(): Promise; }; export declare function openVectorStore(options: OpenVectorStoreOptions): Promise;