import type { PageScreenshotOptions } from "playwright"; import type { ImageComparatorOptions } from "./getImageDifferences/getImageDifferences.js"; export type ImageDiffArtifact = { filePath?: string; images: { actual: string; diff: string; expected: string; }; lineNumber?: number; name: string; similarity: number; sizeMismatch: boolean; }; export type SnapshotStorage = { getSnapshot: (name: string) => Promise; saveArtifacts: (name: string, images: { actual: Buffer | undefined; diff: Buffer | undefined; expected: Buffer; }) => Promise; saveSnapshot: (name: string, value: Buffer) => Promise; }; export type WorkflowCodeLineIdentifier = { filePath: string; lineNumber: number; }; export declare const screenshotOptions: readonly ["animations", "caret", "clip", "fullPage", "mask", "maskColor", "omitBackground", "scale", "timeout"]; export type EmitImageDiffArtifacts = (diff: ImageDiffArtifact) => void; export type ScreenshotOptions = Pick; export type ToMatchScreenshotOptions = ScreenshotOptions & ImageComparatorOptions & { /** * Time to retry the assertion for. Defaults to the configured expect timeout. */ timeout?: number; }; export type Log = (message: string) => void; export type GetLastLineExecuted = () => Partial; //# sourceMappingURL=types.d.ts.map