import type { CheckBaselineImageExists, CroppedBase64Image, ExecuteImageCompare, IgnoreBoxes, ImageCompareResult, ResizeDimensions } from './images.interfaces.js'; import type { FullPageScreenshotsData } from './screenshots.interfaces.js'; import type { GetElementRect, TakeScreenShot } from './methods.interfaces.js'; import type { WicElement } from '../commands/element.interfaces.js'; /** * Check if an image exists and return a boolean */ export declare function checkIfImageExists(filePath: string): Promise; /** * Remove the diff image if it exists */ export declare function removeDiffImageIfExists(diffFilePath: string): Promise; /** * Check if the image exists and create a new baseline image if needed */ export declare function checkBaselineImageExists({ actualFilePath, baselineFilePath, autoSaveBaseline, updateBaseline }: CheckBaselineImageExists): Promise; /** * Make a cropped image with Canvas */ export declare function makeCroppedBase64Image({ addIOSBezelCorners, base64Image, deviceName, devicePixelRatio, isWebDriverElementScreenshot, isIOS, isLandscape, rectangles, resizeDimensions, }: CroppedBase64Image): Promise; /** * Execute the image compare */ export declare function executeImageCompare({ isViewPortScreenshot, isNativeContext, options, testContext, }: ExecuteImageCompare): Promise; /** * Make a full page image with Canvas */ export declare function makeFullPageBase64Image(screenshotsData: FullPageScreenshotsData, { devicePixelRatio, isLandscape }: { devicePixelRatio: number; isLandscape: boolean; }): Promise; /** * Save the base64 image to a file */ export declare function saveBase64Image(base64Image: string, filePath: string): Promise; /** * Create a canvas with the ignore boxes if they are present */ export declare function addBlockOuts(screenshot: string, ignoredBoxes: IgnoreBoxes[]): Promise; /** * Take a base64 screenshot of an element */ export declare function takeBase64ElementScreenshot({ element, devicePixelRatio, isIOS, methods: { getElementRect, screenShot, }, resizeDimensions, }: { element: WicElement; devicePixelRatio: number; isIOS: boolean; methods: { getElementRect: GetElementRect; screenShot: TakeScreenShot; }; resizeDimensions: ResizeDimensions; }): Promise; //# sourceMappingURL=images.d.ts.map