import type { ModelRegistry } from "../config/model-registry";
import type { Settings } from "../config/settings";
import type { MemoryBackendSaveInput, MemoryBackendSaveResult } from "../memory-backend/types";
import type { AgentSession } from "../session/agent-session";
/**
 * Start the background memory startup pipeline.
 *
 * Skips for ephemeral sessions, subagent sessions, disabled settings, or DB failures.
 */
export declare function startMemoryStartupTask(options: {
    session: AgentSession;
    settings: Settings;
    modelRegistry: ModelRegistry;
    agentDir: string;
    taskDepth: number;
}): void;
/**
 * Build memory usage instructions for prompt injection.
 */
export declare function buildMemoryToolDeveloperInstructions(agentDir: string, settings: Settings): Promise<string | undefined>;
/**
 * Clear all persisted memory state and generated artifacts.
 */
export declare function clearMemoryData(agentDir: string, cwd: string): Promise<void>;
/**
 * Force-enqueue global consolidation maintenance work.
 */
export declare function enqueueMemoryConsolidation(agentDir: string, cwd: string, sourceUpdatedAt?: number): void;
export declare function getMemoryRoot(agentDir: string, cwd: string): string;
/**
 * Append one lesson to the project's `learned.md` (newest-first, deduped,
 * capped, secret-redacted, injection-neutralized). The file backs the `learn`
 * tool when `memory.backend` is `local`.
 */
export declare function saveLearnedLesson(agentDir: string, cwd: string, input: MemoryBackendSaveInput): Promise<MemoryBackendSaveResult>;
