/** * In-Memory Database Adapter - Simple implementation for testing and development */ import type { DbAdapter, DbSession, DbMessage, DbRun, DbToolCall, DbTrace, DbSpan } from './types'; export declare class MemoryDbAdapter implements DbAdapter { private sessions; private messages; private runs; private toolCalls; private traces; private spans; private connected; createSession(session: DbSession): Promise; getSession(id: string): Promise; updateSession(id: string, updates: Partial): Promise; deleteSession(id: string): Promise; listSessions(limit?: number, offset?: number): Promise; saveMessage(message: DbMessage): Promise; getMessages(sessionId: string, limit?: number): Promise; deleteMessages(sessionId: string): Promise; createRun(run: DbRun): Promise; getRun(id: string): Promise; updateRun(id: string, updates: Partial): Promise; listRuns(sessionId: string, limit?: number): Promise; saveToolCall(toolCall: DbToolCall): Promise; getToolCalls(runId: string): Promise; createTrace(trace: DbTrace): Promise; getTrace(id: string): Promise; updateTrace(id: string, updates: Partial): Promise; createSpan(span: DbSpan): Promise; getSpans(traceId: string): Promise; updateSpan(id: string, updates: Partial): Promise; connect(): Promise; disconnect(): Promise; isConnected(): boolean; clear(): void; getStats(): { sessions: number; messages: number; runs: number; }; }