/** * AI Patch Doctor - Post-Fix Verification System * * Two-tier verification approach: * - Tier 1: Lightweight smoke tests (always run, <3s) * - Tier 2: Full test suite integration (optional, if detected) */ export interface SmokeTestResult { passed: boolean; checks: { syntax: boolean; imports: boolean; providerPing: boolean; configSanity: boolean; retryLogic: boolean; }; errors: string[]; duration: number; } export interface TestSuiteResult { detected: boolean; command?: string; baseline?: TestMetrics; current?: TestMetrics; regressions: string[]; } export interface TestMetrics { passed: number; failed: number; skipped: number; duration: number; timestamp: number; } export interface VerificationConfig { runTestSuite: boolean; testCommand?: string; lastAsked?: number; } /** * Run quick smoke tests on modified files * Goal: <3 seconds, catches syntax errors and basic issues */ export declare function runSmokeTests(modifiedFiles: string[], targetDir: string): Promise; /** * Detect if codebase has a test suite * Validates that test scripts are real test runners, not dummy commands */ export declare function detectTestSuite(targetDir: string): { detected: boolean; command?: string; framework?: string; }; /** * Run test suite and capture metrics */ export declare function runTestSuite(command: string, targetDir: string): Promise; /** * Compare test results and identify regressions */ export declare function compareTestResults(baseline: TestMetrics, current: TestMetrics): string[]; /** * Load verification config */ export declare function loadVerificationConfig(targetDir: string): VerificationConfig; /** * Save verification config */ export declare function saveVerificationConfig(targetDir: string, config: VerificationConfig): void; /** * Store test baseline */ export declare function storeTestBaseline(targetDir: string, metrics: TestMetrics): void; /** * Load test baseline */ export declare function loadTestBaseline(targetDir: string): TestMetrics | null; /** * Print smoke test results */ export declare function printSmokeTestResults(result: SmokeTestResult): void; /** * Print test suite comparison */ export declare function printTestComparison(baseline: TestMetrics, current: TestMetrics, regressions: string[]): void; //# sourceMappingURL=verification.d.ts.map