import { VectorFilter } from '../filter/index.js'; import { MastraVector, ParamsToArgs, QueryVectorParams, QueryVectorArgs, QueryResult, UpsertVectorParams, CreateIndexParams, IndexStats } from '../index.js'; import '../../base-Dq_cxikD.js'; import '@opentelemetry/api'; import '../../index-BXwGr3N7.js'; import 'stream'; import '@opentelemetry/sdk-trace-base'; interface LibSQLQueryParams extends QueryVectorParams { minScore?: number; } type LibSQLQueryArgs = [...QueryVectorArgs, number?]; declare class LibSQLVector extends MastraVector { private turso; constructor({ connectionUrl, authToken, syncUrl, syncInterval, }: { connectionUrl: string; authToken?: string; syncUrl?: string; syncInterval?: number; }); protected rewriteDbUrl(url: string): string; transformFilter(filter?: VectorFilter): VectorFilter; query(...args: ParamsToArgs | LibSQLQueryArgs): Promise; upsert(...args: ParamsToArgs): Promise; createIndex(...args: ParamsToArgs): Promise; deleteIndex(indexName: string): Promise; listIndexes(): Promise; describeIndex(indexName: string): Promise; /** * Updates an index entry by its ID with the provided vector and/or metadata. * * @param indexName - The name of the index to update. * @param id - The ID of the index entry to update. * @param update - An object containing the vector and/or metadata to update. * @param update.vector - An optional array of numbers representing the new vector. * @param update.metadata - An optional record containing the new metadata. * @returns A promise that resolves when the update is complete. * @throws Will throw an error if no updates are provided or if the update operation fails. */ updateIndexById(indexName: string, id: string, update: { vector?: number[]; metadata?: Record; }): Promise; deleteIndexById(indexName: string, id: string): Promise; truncateIndex(indexName: string): Promise; } export { LibSQLVector as DefaultVectorDB, LibSQLVector };