import type { ScreenshotComparatorRegistry, ScreenshotMatcherOptions, SerializedLocator } from "../../../context.js"; export type ScreenshotMatcherArguments = [name: string, testName: string, options: ScreenshotMatcherOptions & { element?: SerializedLocator; target?: "element" | "page"; screenshotOptions?: ScreenshotMatcherOptions["screenshotOptions"] & { mask?: readonly SerializedLocator[]; }; }]; interface ScreenshotData { path: string; width: number; height: number; } export type ScreenshotMatcherOutput = Promise<{ pass: false; outcome: "unstable-screenshot" | "missing-reference" | "mismatch"; reference: ScreenshotData | null; actual: ScreenshotData | null; diff: ScreenshotData | null; message: string; } | { pass: true; outcome: "update-reference" | "matched-immediately" | "matched-after-comparison"; }>; export {};