import { Command } from 'commander'; export interface LintAgentOptions { } export interface LintAgentResult { passed: boolean; /** * Statistiques globales issues de ESLint */ metrics?: { errors: number; warnings: number; /** Nombre de fichiers analysés */ files: number; /** Nombre total de problèmes (errors + warnings) */ total: number; /** Nombre de problèmes fixables */ fixable: number; }; /** Chemin vers le rapport JSON détaillé */ detailPath?: string; /** Contenu brut en cas d'erreur JSON */ output?: string; /** Synthèse des fichiers et règles les plus problématiques */ summary?: { topFiles: Array<{ filePath: string; errors: number; warnings: number; total: number; fixable: number; }>; topRules: Array<{ ruleId: string; count: number; }>; }; } /** * Lance ESLint et renvoie le résultat. */ export declare function lintAgent(_opts?: LintAgentOptions): Promise; export declare const cli: { command: string; description: string; builder: (cmd: Command) => Command; handler: (_opts: unknown) => Promise; };