/** * Phase 11: Python AI context detection helper. * * Inspects file content to determine whether it is AI-context code — i.e., code * that imports or uses major AI/LLM frameworks. When this is true, rule matches * in that file can receive a confidence boost because the finding is far more * likely to be reachable by an LLM-sensitive code path. */ /** Confidence boost applied when a file is detected as AI-context (0.0 – 0.15). */ export declare const AI_CONTEXT_CONFIDENCE_BOOST = 0.1; /** * Returns true if the given file content contains AI/LLM framework imports, * indicating the file operates in an AI-adjacent code path. * * Used by rules to boost confidence when the finding occurs in a confirmed * AI-framework context, reducing false positive noise in general purpose code. */ export declare function isAiContextFile(content: string): boolean; /** * Returns a context-adjusted confidence value. * If the file content contains known AI framework imports the base confidence * is boosted by AI_CONTEXT_CONFIDENCE_BOOST, capped at 1.0. */ export declare function aiContextConfidence(baseConfidence: number, content: string): number; /** * Determines whether a Python file path looks like a test file based on * Python testing conventions (pytest, unittest). */ export declare function isPythonTestFile(filePath: string): boolean;