/**
 * Merge Oracle — Byzantine Consensus & Hierarchical Synthesis
 *
 * Beyond simple voting: the Oracle analyzes code hierarchy and
 * resolves conflicts by favoring structurally consistent changes.
 */
import type { WorkerResult, MergeDecision } from './index.js';
import type { MemoryEngine } from '../engines/memory.js';
export declare class MergeOracle {
    private memory;
    constructor(memory: MemoryEngine);
    /**
     * Evaluate all worker results and produce a merge decision.
     * Uses Byzantine-inspired voting: 2/3 agreement = high confidence.
     */
    merge(workers: WorkerResult[]): Promise<MergeDecision>;
    private scoreWorker;
    /**
     * Parse a unified diff string into individual hunks.
     * Each hunk has: file, startLine, endLine, content.
     */
    private parseHunks;
    /**
     * Detect overlapping hunks between two sets.
     * Returns: { overlapping: string[], nonOverlapping: string[] }
     */
    private detectOverlaps;
    /**
     * Synthesize diffs by respecting hierarchy.
     * Parses unified diff hunks, detects file/line overlaps,
     * and favors the higher-scored worker on conflicts.
     */
    private hierarchicalSynthesize;
}
