/** * @module @nhtio/adk/batteries/vector/sqlite_vec */ import { BaseVectorStore, CallableVectorStore } from "../contract"; import type { SearchPlan, UpsertPlan, DeletePlan, CollectionSpec } from "../plan"; import type { VectorMatch, VectorStoreCapabilities, BaseVectorStoreOptions } from "../types"; /** Construction options for {@link SqliteVecVectorStore}. */ export interface SqliteVecVectorStoreOptions extends BaseVectorStoreOptions { /** Database location: a filesystem path, or `':memory:'` for an in-memory database. */ connection: { path: string; }; } export declare class SqliteVecVectorStore extends BaseVectorStore { #private; readonly capabilities: VectorStoreCapabilities; constructor(options: SqliteVecVectorStoreOptions); /** Static availability probe: whether this adapter's runtime driver can load in the current environment. */ static isAvailable(): boolean; isAvailable(): boolean; connect(): Promise; close(): Promise; /** The underlying SQLite database handle; throws if the store is not connected. */ get db(): any; createCollection(spec: CollectionSpec, ifNotExists: boolean): Promise; dropCollection(collection: string, ifExists: boolean): Promise; hasCollection(collection: string): Promise; renameCollection(from: string, to: string): Promise; executeUpsert(plan: UpsertPlan): Promise; executeSearch(plan: SearchPlan): Promise; executeDelete(plan: DeletePlan): Promise; transaction(fn: (tx: CallableVectorStore) => Promise): Promise; }