import type { LearningConfig } from '../types/config.types.js';
import type { ErrorRepository } from '../db/repositories/error.repository.js';
import type { SolutionRepository } from '../db/repositories/solution.repository.js';
import type { RuleRepository } from '../db/repositories/rule.repository.js';
import type { AntipatternRepository } from '../db/repositories/antipattern.repository.js';
import type { SynapseManager } from '../synapses/synapse-manager.js';
import { BaseLearningEngine } from '@timmeck/brain-core';
export interface LearningCycleResult {
    newPatterns: number;
    updatedRules: number;
    prunedRules: number;
    newAntipatterns: number;
    duration: number;
}
export declare class LearningEngine extends BaseLearningEngine {
    private config;
    private errorRepo;
    private solutionRepo;
    private ruleRepo;
    private antipatternRepo;
    private synapseManager;
    private lastCycleAt;
    constructor(config: LearningConfig, errorRepo: ErrorRepository, solutionRepo: SolutionRepository, ruleRepo: RuleRepository, antipatternRepo: AntipatternRepository, synapseManager: SynapseManager);
    runCycle(): LearningCycleResult;
    private detectAntipatterns;
    getLastCycleAt(): string | null;
}
