/** * Two things the observation path needs and does not decide. * * Which engine painted a subject is part of a baseline's identity, and * promoting one is the acceptance path's last step. Both are here because the * fixture module is about wiring a runner's fixtures together, and neither of * these knows a runner exists. */ import type { Page } from '@playwright/test'; import { documentDigest } from '@variance-authority/core/format'; import type { AccessibilitySnapshot, SemanticSnapshot } from '@variance-authority/core/format'; import type { BaselineKey, RasterStore, Renderer } from '@variance-authority/raster'; export declare function engineOf(page: Page): string; /** * Promote the candidate this run already painted. * * The image is taken from the render cache rather than rendered again, which is * not only a saving: re-rendering here would produce a *second* image and store * that one, so the bytes a reviewer approved and the bytes that became the * baseline would be two different renders that nobody compared. A cache miss is * therefore refused rather than papered over — the cache never throws and is * allowed to be cold, and "cold" is exactly the case where there is no candidate * to promote. */ export declare function promote(store: RasterStore, renderer: Renderer, document: Parameters[0], key: BaselineKey, /** This run's snapshot of the same render. See below. */ snapshot: SemanticSnapshot, accessibility: AccessibilitySnapshot): Promise; //# sourceMappingURL=promote.d.ts.map