export interface ComparisonScreenshot { readonly base64: string; readonly mimeType: "image/png"; readonly width: number; readonly height: number; readonly url: string; readonly timestamp: string; } export interface ComparisonResult { readonly screenshotA: ComparisonScreenshot; readonly screenshotB: ComparisonScreenshot; readonly differencePercent: number; readonly pixelsChanged: number; readonly dimensions: { readonly width: number; readonly height: number; }; readonly diffImage: string; readonly urlA: string; readonly urlB: string; } /** * Compare two URLs by capturing screenshots of each and computing * the pixel-level difference between them. * * Captures both pages at the same viewport dimensions, then uses * pixelmatch to compute an accurate pixel difference. Returns both * screenshots, a red-highlighted diff image, and difference metrics. */ export declare function compareScreenshots(urlA: string, urlB: string, options?: { readonly width?: number; readonly height?: number; }): Promise; //# sourceMappingURL=compare.d.ts.map