/** * Snapshot Diffing & Annotation * * Produces unified text diffs of accessibility tree snapshots * and annotated screenshots with ref labels. */ type Page = import('playwright').Page; import type { RefMap } from './refs.js'; /** * Produce a unified diff between baseline and current accessibility snapshots. * Shows added (+), removed (-), and unchanged lines. */ export declare function diffSnapshots(baseline: RefMap, current: RefMap): string; /** * Take an annotated screenshot with ref labels overlaid on elements. * Injects temporary overlay divs, captures screenshot, then removes them. * * - Captures the full page so annotations below the fold are visible. * - Skips elements with zero bounding-box (avoids stray labels at 0,0). * - Positions labels above the element (or below if at the page top), * uses absolute (document-relative) coordinates so they line up in * the full-page image. */ export declare function annotateScreenshot(page: Page, refMap: RefMap): Promise; export {}; //# sourceMappingURL=diff.d.ts.map