import { AntriConfig } from '../types.js'; export interface BugTwinResult { success: boolean; reproduced: boolean; fixed: boolean; verified: boolean; reproductionTestFile?: string; reproductionError?: string; fixSummary?: string; filesPatched?: string[]; diff?: string; artifactId?: string; artifactHtmlUrl?: string; commandRun?: string; durationMs?: number; prSummary?: string; error?: string; } export interface BugTwinStateStep { step: number; label: string; component: string; statePayload: Record; isCorrupted: boolean; note: string; } export declare class BugTwinEngine { private config; private workingDir; constructor(config?: AntriConfig, customWorkingDir?: string); /** * Autonomous Bug Reproduction & Visual Fix Verification Pipeline */ reproduceAndFix(rawBugInput: string, options?: { onProgress?: (status: string, stage: 'ingest' | 'reproduce' | 'patch' | 'verify' | 'artifact') => void; cleanReproFile?: boolean; }): Promise; /** * Scans workspace to locate suspect files mentioned in or related to the bug input */ private locateSuspectFiles; /** * Detects project ecosystem and testing harness */ private detectProjectType; /** * Synthesizes a deterministic minimal reproduction test script */ private synthesizeReproductionTest; /** * Executes a test file and captures output and exit code */ private executeTestFile; /** * Executes a general shell command in workspace */ private executeCheckCommand; /** * Runs the Dialectic Self-Healing loop to patch code */ private executeDialecticPatchLoop; /** * Captures git diff of recent changes */ private getGitDiff; /** * Extracts clean 1-line title from user bug input */ private extractBugTitle; /** * Generates step-by-step state transition data for the Visual State Flow Graph */ private generateStateFlowData; /** * Synthesizes the interactive BugTwin Visual HTML Artifact */ private generateBugTwinArtifactHtml; /** * Generates a GitHub Pull Request markdown summary */ private generatePrSummary; } //# sourceMappingURL=bugTwin.d.ts.map