import type { MastraMessageContentV2 } from '@mastra/core/agent'; import type { MastraDBMessage, StorageThreadType } from '@mastra/core/memory'; import type { StorageResourceType, StorageListMessagesInput, StorageListMessagesByResourceIdInput, StorageListMessagesOutput, StorageListThreadsInput, StorageListThreadsOutput, StorageCloneThreadInput, StorageCloneThreadOutput, ObservationalMemoryRecord, ObservationalMemoryHistoryOptions, CreateObservationalMemoryInput, UpdateActiveObservationsInput, UpdateBufferedObservationsInput, SwapBufferedToActiveInput, SwapBufferedToActiveResult, UpdateBufferedReflectionInput, SwapBufferedReflectionToActiveInput, CreateReflectionGenerationInput, UpdateObservationalMemoryConfigInput } from '@mastra/core/storage'; import { MemoryStorage } from '@mastra/core/storage'; import type { LibSQLDomainConfig } from '../../db/index.js'; export declare class MemoryLibSQL extends MemoryStorage { #private; readonly supportsObservationalMemory = true; constructor(config: LibSQLDomainConfig); init(): Promise; dangerouslyClearAll(): Promise; private parseRow; private _sortMessages; private _getIncludedMessages; listMessagesById({ messageIds }: { messageIds: string[]; }): Promise<{ messages: MastraDBMessage[]; }>; listMessages(args: StorageListMessagesInput): Promise; listMessagesByResourceId(args: StorageListMessagesByResourceIdInput): Promise; saveMessages({ messages }: { messages: MastraDBMessage[]; }): Promise<{ messages: MastraDBMessage[]; }>; updateMessages({ messages, }: { messages: (Partial> & { id: string; content?: { metadata?: MastraMessageContentV2['metadata']; content?: MastraMessageContentV2['content']; }; })[]; }): Promise; deleteMessages(messageIds: string[]): Promise; getResourceById({ resourceId }: { resourceId: string; }): Promise; saveResource({ resource }: { resource: StorageResourceType; }): Promise; updateResource({ resourceId, workingMemory, metadata, }: { resourceId: string; workingMemory?: string; metadata?: Record; }): Promise; getThreadById({ threadId }: { threadId: string; }): Promise; listThreads(args: StorageListThreadsInput): Promise; saveThread({ thread }: { thread: StorageThreadType; }): Promise; updateThread({ id, title, metadata, }: { id: string; title: string; metadata: Record; }): Promise; deleteThread({ threadId }: { threadId: string; }): Promise; cloneThread(args: StorageCloneThreadInput): Promise; private getOMKey; private parseOMRow; getObservationalMemory(threadId: string | null, resourceId: string): Promise; getObservationalMemoryHistory(threadId: string | null, resourceId: string, limit?: number, options?: ObservationalMemoryHistoryOptions): Promise; initializeObservationalMemory(input: CreateObservationalMemoryInput): Promise; insertObservationalMemoryRecord(record: ObservationalMemoryRecord): Promise; updateActiveObservations(input: UpdateActiveObservationsInput): Promise; createReflectionGeneration(input: CreateReflectionGenerationInput): Promise; setReflectingFlag(id: string, isReflecting: boolean): Promise; setObservingFlag(id: string, isObserving: boolean): Promise; setBufferingObservationFlag(id: string, isBuffering: boolean, lastBufferedAtTokens?: number): Promise; setBufferingReflectionFlag(id: string, isBuffering: boolean): Promise; clearObservationalMemory(threadId: string | null, resourceId: string): Promise; setPendingMessageTokens(id: string, tokenCount: number): Promise; updateObservationalMemoryConfig(input: UpdateObservationalMemoryConfigInput): Promise; updateBufferedObservations(input: UpdateBufferedObservationsInput): Promise; swapBufferedToActive(input: SwapBufferedToActiveInput): Promise; updateBufferedReflection(input: UpdateBufferedReflectionInput): Promise; swapBufferedReflectionToActive(input: SwapBufferedReflectionToActiveInput): Promise; } //# sourceMappingURL=index.d.ts.map