import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-hRgvGkC2.js'; import 'ai'; import '../../base-Dq_cxikD.js'; import '@opentelemetry/api'; import '../../index-BXwGr3N7.js'; import 'stream'; import '@opentelemetry/sdk-trace-base'; import '../../types-CwTG2XyQ.js'; import 'sift'; import 'zod'; import 'json-schema'; import 'xstate'; import 'events'; import '../../vector/index.js'; import '../../vector/filter/index.js'; import '../../tts/index.js'; interface LibSQLConfig { url: string; authToken?: string; } declare class LibSQLStore extends MastraStorage { private client; constructor({ config }: { config: LibSQLConfig; }); protected rewriteDbUrl(url: string): string; private getCreateTableSQL; createTable({ tableName, schema, }: { tableName: TABLE_NAMES; schema: Record; }): Promise; clearTable({ tableName }: { tableName: TABLE_NAMES; }): Promise; private prepareStatement; insert({ tableName, record }: { tableName: TABLE_NAMES; record: Record; }): Promise; batchInsert({ tableName, records }: { tableName: TABLE_NAMES; records: Record[]; }): Promise; load({ tableName, keys }: { tableName: TABLE_NAMES; keys: Record; }): Promise; getThreadById({ threadId }: { threadId: string; }): Promise; getThreadsByResourceId({ resourceId }: { resourceId: string; }): Promise; saveThread({ thread }: { thread: StorageThreadType; }): Promise; updateThread({ id, title, metadata, }: { id: string; title: string; metadata: Record; }): Promise; deleteThread({ threadId }: { threadId: string; }): Promise; private parseRow; getMessages({ threadId, selectBy }: StorageGetMessagesArg): Promise; saveMessages({ messages }: { messages: MessageType[]; }): Promise; private transformEvalRow; getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise; getTraces({ name, scope, page, perPage, attributes, }?: { name?: string; scope?: string; page: number; perPage: number; attributes?: Record; }): Promise; } export { LibSQLStore as DefaultStorage, type LibSQLConfig, LibSQLStore };