import { MemoryEngine, MemoryItem } from '../engines/memory.js';
import { MergeDecision } from '../phantom/index.js';
/**
 * AgentLearner — Post-execution analysis engine.
 * Identifies patterns of success/failure and marks evolution candidates.
 * Uses direct SQL queries via MemoryEngine.queryByTags for precision.
 */
export declare class AgentLearner {
    private memory;
    constructor(memory: MemoryEngine);
    /**
     * Analyze a swarm execution result and store findings.
     */
    analyze(goal: string, decision: MergeDecision): Promise<void>;
    /**
     * Promote repeating patterns from memories to runtime skills.
     * Queries memories tagged #agent-learning with accessCount >= 3,
     * extracts patterns, creates skills, and tags sources with #promoted-to-skill.
     */
    promoteRepeatingPatterns(): Promise<{
        promoted: number;
        skills: string[];
    }>;
    /**
     * Identify evolution candidates using direct SQL tag queries.
     * Groups findings by file path to identify hotspots.
     */
    identifyEvolutionCandidates(): Promise<{
        candidates: MemoryItem[];
        hotspots: Map<string, number>;
        recommendations: string[];
    }>;
}
