/**
 * Brownfield Analysis Worker
 *
 * Performs brownfield documentation analysis in phases:
 * 1. Discovery - Find all code/doc files
 * 2. Code Analysis - Extract signatures, APIs
 * 3. Doc Matching - Match code to docs
 * 4. Discrepancy Detection - Find documentation gaps
 * 5. Reporting - Generate summary
 *
 * Supports pause/resume via checkpoints.
 */
import { BrownfieldJobConfig } from '../../core/background/index.js';
import { Logger } from '../../utils/logger.js';
/**
 * Brownfield Analysis Worker
 */
export declare class BrownfieldAnalysisWorker {
    private readonly projectPath;
    private readonly jobId;
    private readonly config;
    private readonly logger;
    private readonly discrepancyManager;
    private context;
    private llmProvider?;
    constructor(projectPath: string, jobId: string, config: BrownfieldJobConfig, options?: {
        logger?: Logger;
    });
    /**
     * Initialize LLM provider for deep analysis modes
     */
    private initLLMProvider;
    /**
     * Run the brownfield analysis
     */
    run(): Promise<number>;
    /**
     * Phase 1: Discovery - Find all code and documentation files
     */
    private runDiscoveryPhase;
    /**
     * Phase 2: Code Analysis - Extract exports and signatures
     */
    private runCodeAnalysisPhase;
    /**
     * Phase 3: Doc Matching - Match docs to code modules
     */
    private runDocMatchingPhase;
    /**
     * Phase 4: Discrepancy Detection - Find documentation gaps
     */
    private runDiscrepancyDetectionPhase;
    /**
     * AI-powered deep analysis using Claude Code or configured LLM
     */
    private runAIAnalysis;
    /**
     * Analyze a single module with AI for semantic discrepancies
     */
    private analyzeModuleWithAI;
    /**
     * Phase 5: Reporting - Generate summary
     */
    private runReportingPhase;
    private findFiles;
    private walkDir;
    private analyzeModule;
    private extractExports;
    private parseDocFile;
    private calculatePriority;
    private generateRecommendations;
}
/**
 * Run brownfield analysis for a job
 */
export declare function runBrownfieldAnalysis(projectPath: string, jobId: string, config: BrownfieldJobConfig, options?: {
    logger?: Logger;
}): Promise<number>;
//# sourceMappingURL=brownfield-worker.d.ts.map