import type Database from 'better-sqlite3';
export interface AntipatternRecord {
    id: number;
    pattern: string;
    description: string;
    severity: string;
    suggestion: string | null;
    occurrences: number;
    project_id: number | null;
    global: number;
    created_at: string;
}
type AntipatternCreate = Omit<AntipatternRecord, 'id' | 'created_at'>;
type AntipatternUpdate = Partial<Omit<AntipatternRecord, 'id' | 'created_at'>>;
export declare class AntipatternRepository {
    private db;
    private stmts;
    constructor(db: Database.Database);
    create(data: AntipatternCreate): number;
    getById(id: number): AntipatternRecord | undefined;
    update(id: number, data: AntipatternUpdate): boolean;
    delete(id: number): boolean;
    findByProject(projectId: number): AntipatternRecord[];
    findGlobal(): AntipatternRecord[];
}
export {};
