/** * Session persistence — auto-save every rlmx run to ~/.rlmx/sessions//. * * Each session directory contains: * meta.json — run metadata (runId, query, context, timestamp, version) * usage.json — token usage and cost statistics * answer.txt — final answer text * config.yaml — snapshot of the RlmxConfig used * trajectory.jsonl — copy of the JSONL log (if --log was specified) */ /** Data required to persist a session. */ export interface SessionData { runId: string; query: string; contextPath: string | null; model: string; answer: string; usage: { inputTokens: number; outputTokens: number; cachedTokens: number; totalCost: number; iterations: number; timeMs: number; model: string; }; config: Record; logPath: string | null; } /** * Save session artifacts to ~/.rlmx/sessions//. * Returns the session directory path. */ export declare function saveSession(data: SessionData): Promise; //# sourceMappingURL=session.d.ts.map