UNPKG

@wix-pilot/core

Version:

A flexible plugin that drives your tests with human-written commands, enhanced by the power of large language models (LLMs)

12 lines (11 loc) 495 B
import { ScreenCapturerResult, SnapshotHashing } from "../../../types"; export declare class DHash implements SnapshotHashing { private bits; constructor(bits?: number); hashSnapshot(screenCapture: ScreenCapturerResult): Promise<string | undefined>; private calculateDHash; private readPNG; private createGrayscaleGrid; calculateSnapshotDistance(snapshot1: string, snapshot2: string): number; areSnapshotsSimilar(snapshot1: string, snapshot2: string): boolean; }