import { MemoryLoader } from "../memory-loader.js"; import type { AgentLoopConfig } from "../types.js"; import type { SessionOutcome } from "../types.js"; export interface MemoryInitResult { memoryLoader: MemoryLoader | null; memoryContext: string; } /** * Initialize MemoryLoader and run wake/orient/match if configured. * Returns the loader instance and the built system prompt prefix. */ export declare function initMemory(prompt: string, config: AgentLoopConfig): MemoryInitResult; /** * buildEpisodicLog — Assemble session log for persistEpisodic(). * * Uses compactor.getLastSummary() for ## What Happened when available, * falling back to the raw task description. */ export declare function buildEpisodicLog(sessionId: string, taskDescription: string, turnCount: number, outcome: SessionOutcome, compactor?: import("../context-compactor.js").ContextCompactor): string; /** Persist episodic memory, run extraction if configured, and reset session state. */ export declare function finalizeMemory(memoryLoader: MemoryLoader | null, sessionId: string, prompt: string, turn: number, sessionOutcome: SessionOutcome, config: AgentLoopConfig): Promise; //# sourceMappingURL=memory.d.ts.map