import type { ScreenshotResult } from "../types.js"; export interface SemanticComparisonOptions { readonly viewport?: { readonly width: number; readonly height: number; }; } export interface SemanticComparisonResult { readonly beforeScreenshot: ScreenshotResult; readonly afterScreenshot: ScreenshotResult; readonly diffImage: string; readonly differencePercent: number; readonly pixelsChanged: number; readonly dimensions: { readonly width: number; readonly height: number; }; readonly methodology: string; readonly changeDescription: string; readonly urlBefore: string; readonly urlAfter: string; } /** * Generate a detailed methodology prompt that tells Claude exactly * how to analyze before/after screenshots for semantic correctness. */ export declare function buildComparisonMethodology(changeDescription: string, diffPercent: number): string; /** * Capture before/after screenshots, compute pixel diff, and generate * a structured methodology prompt for Claude's vision to perform * semantic comparison of the UI changes. * * This does NOT call an external AI API — it structures the output so * the calling Claude instance can do the semantic analysis using its * own vision capabilities. */ export declare function captureSemanticComparison(urlBefore: string, urlAfter: string, changeDescription: string, options?: SemanticComparisonOptions): Promise; //# sourceMappingURL=semantic-compare.d.ts.map