import type { LearningConfig } from '../types/config.types.js';
import type { RuleRepository } from '../db/repositories/rule.repository.js';
import type { ErrorPattern } from './pattern-extractor.js';
export interface GeneratedRule {
    pattern: string;
    action: string;
    description: string;
    confidence: number;
    sourceErrorIds: number[];
}
/**
 * Generate prevention rules from extracted patterns.
 */
export declare function generateRules(patterns: ErrorPattern[], config: LearningConfig): GeneratedRule[];
/**
 * Persist generated rules to the database.
 */
export declare function persistRules(rules: GeneratedRule[], ruleRepo: RuleRepository, projectId?: number): number;
