/**
 * Reward Hacking Detector for Dev Flow MCP v2.0
 * Prevents LLM from gaming the system or bypassing requirements
 */
import { Task, RewardHackingCheck } from './types.js';
export declare class RewardHackingDetector {
    private projectRoot;
    private suspiciousPatterns;
    private trivialSubtaskPatterns;
    constructor(projectRoot: string);
    checkSubtaskCreation(context: {
        parent_task: Task;
        proposed_title: string;
        reason: string;
    }): Promise<RewardHackingCheck>;
    checkTestModification(filePath: string, oldContent: string, newContent: string, failFast?: boolean): Promise<{
        suspicious: boolean;
        patterns: string[];
        shouldFail?: boolean;
        severity?: 'LOW' | 'MEDIUM' | 'HIGH';
    }>;
    checkTaskCompletion(task: Task, context: {
        test_results?: {
            all_passed: boolean;
            failures: string[];
        };
        files_modified: string[];
        completion_reason: string;
    }): Promise<RewardHackingCheck>;
    checkStageAdvancement(currentStage: string, nextStage: string, context: {
        stage_iterations: Record<string, number>;
        time_in_stage: number;
        outputs_created: string[];
    }): Promise<RewardHackingCheck>;
    /**
     * Enhanced real-time test file monitoring with fail fast
     */
    monitorTestFiles(testFilePaths: string[], failFast?: boolean): Promise<{
        violations: Array<{
            file: string;
            patterns: string[];
            severity: string;
        }>;
        totalViolations: number;
        criticalViolations: number;
    }>;
    /**
     * Quick check for common test bypassing patterns
     */
    quickTestBypassCheck(content: string): Promise<{
        hasBypass: boolean;
        bypassPatterns: string[];
        riskLevel: 'LOW' | 'MEDIUM' | 'HIGH';
    }>;
    /**
     * Generate detailed report of test integrity issues
     */
    generateTestIntegrityReport(testFilePaths: string[]): Promise<string>;
    private loadTasks;
    private calculateSimilarity;
    private countAssertions;
    private countTestCases;
    private estimateChangesInFiles;
    private getRequiredOutputsForStage;
    private getMaxIterationsForStage;
}
//# sourceMappingURL=reward-hacking-detector.d.ts.map