import type { AgentSpan, AgentTrace } from '../types/trace.js'; import { type TraceListWindow, type TraceStore } from './TraceStore.js'; export interface MemoryTraceStoreOptions { retentionMs?: number; } export declare class MemoryTraceStore implements TraceStore { private readonly options; private readonly spans; constructor(options?: MemoryTraceStoreOptions); write(span: AgentSpan): void; putSpan(span: AgentSpan): void; getTrace(traceId: string): Promise; listTraces(sessionId: string, window?: TraceListWindow): Promise; cleanup(maxAgeMs: number): Promise; private cleanupSync; }