export interface ValidationResult { isValid: boolean; confidence: number; issues: string[]; suggestions: string[]; requiresVerification: boolean; uncertainties: string[]; } export interface CodeQualityCheck { hasPlaceholders: boolean; hasRealImplementation: boolean; hasProperErrorHandling: boolean; hasTests: boolean; testCoverage: number; securityIssues: string[]; performanceIssues: string[]; dependencyIssues: string[]; } export declare const ANTI_HALLUCINATION_RULES: { readonly CORE_HONESTY: { readonly UNCERTAINTY_DECLARATION: "Must explicitly state uncertainty about implementation details"; readonly KNOWLEDGE_BOUNDARIES: "Must distinguish between known patterns and specific details"; readonly NO_GUESSING: "Forbidden to guess at API signatures, library methods, or configuration"; readonly SUGGEST_VERIFICATION: "Required to suggest verification steps when uncertain"; }; readonly CODE_QUALITY: { readonly REAL_IMPLEMENTATION_ONLY: "Forbidden to generate placeholder implementations marked as real"; readonly WORKING_CODE: "Must provide working implementations for claimed functionality"; readonly DEPENDENCY_VERIFICATION: "Must verify imported libraries and methods actually exist"; readonly CONFIGURATION_ACCURACY: "Must use real configuration formats and valid syntax"; }; readonly TDD_REQUIREMENTS: { readonly TEST_FIRST: "Required to write failing tests before implementation"; readonly COMPREHENSIVE_COVERAGE: "Required minimum 80% test coverage"; readonly TEST_VERIFICATION: "Must run tests and verify results"; readonly EDGE_CASE_TESTING: "Required to test edge cases and error conditions"; }; readonly BEST_PRACTICES: { readonly ERROR_HANDLING: "Required proper error handling for all operations"; readonly SECURITY: "Must implement secure coding practices and input validation"; readonly PERFORMANCE: "Must consider performance implications and efficiency"; readonly DOCUMENTATION: "Required clear usage instructions and examples"; }; }; export declare class AntiHallucinationValidator { private readonly confidenceThreshold; private readonly uncertaintyPatterns; private readonly placeholderPatterns; validateResponse(response: string, codeContent?: string): ValidationResult; validateCode(code: string): CodeQualityCheck; generateAgentInstructions(): string; private hasUncertaintyDeclarations; private checkRealImplementation; private checkErrorHandling; private checkTestPresence; private estimateTestCoverage; private checkSecurityIssues; private checkPerformanceIssues; private checkDependencyIssues; } export declare function validateBeforeGeneration(context: any, confidence?: number): { canProceed: boolean; requirements: string[]; }; export declare function validateAfterGeneration(generatedCode: string, response: string): ValidationResult; export interface TestExecutionResult { success: boolean; coverage: number; failingTests: string[]; output: string; suggestions: string[]; } export declare function executeAndValidateTests(_testCommand: string, _workingDir: string): Promise; export default AntiHallucinationValidator; //# sourceMappingURL=anti-hallucination.d.ts.map