import type { Page } from 'playwright';
type ScreenshotCompareOptions = {
    expectedDir: string;
    actualDir: string;
    diffDir: string;
    selectors?: Record<string, string>;
    index?: number;
    mask?: string[];
    threshold?: number;
    maxDiffPixels?: number;
    cwd?: string;
};
export type ScreenshotCompareResult = {
    match: true;
    diffPixels: number;
    expectedPath: string;
    actualPath: string;
    diffPath?: string;
};
export declare class ScreenshotComparisonError extends Error {
    expectedPath?: string;
    actualPath?: string;
    diffPath?: string;
    constructor(message: string, details?: {
        expectedPath?: string;
        actualPath?: string;
        diffPath?: string;
    });
}
export declare function takeFullPageScreenshot(page: Page): Promise<Buffer>;
export declare function compareScreenScreenshot(page: Page, screenshotPath: string, options: ScreenshotCompareOptions): Promise<ScreenshotCompareResult>;
export declare function compareElementScreenshot(page: Page, target: string, screenshotPath: string, options: ScreenshotCompareOptions): Promise<ScreenshotCompareResult>;
export {};
