export interface VectorEntry { id?: string; vector: Float32Array | number[]; } export interface SearchQuery { vector: Float32Array | number[]; k: number; efSearch?: number; } export interface SearchResult { id: string; score: number; } export class VectorDb { constructor(options: { dimensions: number; storagePath?: string; distanceMetric?: string; hnswConfig?: any }); insert(entry: VectorEntry): Promise; insertBatch(entries: VectorEntry[]): Promise; search(query: SearchQuery): Promise; delete(id: string): Promise; get(id: string): Promise; len(): Promise; isEmpty(): Promise; } // Alias for backwards compatibility export { VectorDb as VectorDB };