/**
 * Hallucination Guard - Advanced validation to minimize AI hallucinations
 *
 * Features:
 * 1. Content validation before edits
 * 2. Fact verification for web search results
 * 3. Confidence scoring for AI outputs
 * 4. Cross-referencing with existing knowledge
 */
export interface HallucinationCheck {
    type: 'content_guess' | 'fact_claim' | 'code_pattern' | 'file_existence';
    confidence: 'high' | 'medium' | 'low';
    riskLevel: 'critical' | 'warning' | 'info';
    message: string;
    suggestion: string;
}
export interface HallucinationReport {
    checks: HallucinationCheck[];
    overallRisk: 'critical' | 'warning' | 'safe';
    confidenceScore: number;
}
/**
 * Validate AI content for hallucinations before execution
 */
export declare class HallucinationGuard {
    private readonly workingDir;
    private readonly knownFacts;
    constructor(options?: {
        workingDir?: string;
    });
    /**
     * Validate file operations for hallucinations
     */
    validateFileOperation(toolName: string, args: Record<string, unknown>, existingContent?: string): HallucinationReport;
    /**
     * Validate AI-generated code for common hallucination patterns
     */
    validateGeneratedCode(code: string, _context?: string): HallucinationReport;
    /**
     * Register known facts from previous operations to cross-reference
     */
    registerFact(fact: string, source: string, confidence: number): void;
    /**
     * Check if a claim contradicts known facts
     */
    checkFactContradiction(claim: string): HallucinationCheck | null;
    private calculateContentSimilarity;
    private isOverlyBroadPattern;
    private containsFactClaim;
    private areContradictory;
    private generateReport;
}
/**
 * Enhanced validation that integrates with existing tool runtime
 */
export declare function enhanceWithHallucinationGuard(toolName: string, args: Record<string, unknown>, existingContent?: string): HallucinationReport;
//# sourceMappingURL=hallucinationGuard.d.ts.map