import ts from "typescript"; import type { Severity, FindingCategory } from "../types.js"; export interface AstFinding { readonly rule: string; readonly severity: Severity; readonly category: FindingCategory; readonly message: string; readonly suggestion: string; readonly line: number; } export declare function checkReactHooksConditional(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkMissingKeyProp(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkEmptyCatch(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkAnyType(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkDirectDomAccess(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkConsoleLog(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function checkInlineStyle(sourceFile: ts.SourceFile): readonly AstFinding[]; export declare function canParseAsAst(filePath: string): boolean; export declare const AST_RULE_IDS: Set; export declare function parseSourceFile(filePath: string, content: string): ts.SourceFile | null; export declare function runAstAnalysis(filePath: string, content: string): readonly AstFinding[]; //# sourceMappingURL=ast-analyzer.d.ts.map