/** * Continuous learning configuration (Python parity: `Agent(learn=...)` / * `LearnConfig`, `memory/learn/manager.py` `LearnManager`). * * Only the *configuration* is resolved here, exactly as Python resolves it * (`True` -> agentic mode, a mode string, a dict, or a config object). The * `LearnManager` that captures and injects learnings lives under * `src/memory/learn` in a later port stream; until it exists the Agent keeps * a precise parity notice so the setting never vanishes silently. */ export type LearnMode = 'disabled' | 'agentic' | 'propose'; export type LearnScope = 'private' | 'shared' | 'global'; export type LearnBackend = 'file' | 'sqlite' | 'postgres' | 'mongodb'; export declare const LEARN_MODES: ReadonlySet; export interface LearnConfig { persona: boolean; insights: boolean; thread: boolean; patterns: boolean; decisions: boolean; feedback: boolean; improvements: boolean; nudgeInterval: number; nudgeMinToolIters: number; proposeSkills: boolean; mode: LearnMode; scope: LearnScope; backend: LearnBackend | string; dbUrl?: string; storePath?: string; maxEntries: number; retentionDays: number; llm?: string; } /** * Resolve the constructor option. Mirrors `agent/agent.py`: `true` enables * agentic mode, a string names a mode, an object supplies fields * (snake_case accepted). Unknown modes disable learning with a warning, as * Python does. */ export declare function resolveLearnConfig(input: boolean | string | Record | undefined | null, warn?: (message: string) => void): LearnConfig | undefined;