///
import { MugshotSelector } from '../lib/mugshot';
export interface ScreenshotOptions {
/**
* All elements identified by this selector will be covered with {@link ignoreColor}
* before taking the screenshot.
*/
ignore?: MugshotSelector;
/**
* The color used to covered elements matched by the {@link ignore} selector.
*
* @example
* #ff0000 // 6 hex char notation
*
* @example
* #ccc // 3 hex char notation
*
* @default #000
*/
ignoreColor?: string;
}
/**
* Thrown when the selector passed to {@link check|Mugshot.check} matches more than one
* element.
*/
export declare class TooManyElementsError extends Error {
constructor(selector: MugshotSelector);
}
export interface Screenshotter {
/**
* Take a viewport screenshot.
*/
takeScreenshot(options?: ScreenshotOptions): Promise;
/**
* Take a screenshot of a single element.
*
* Will throw {@link TooManyElementsError} if `selector` matches more than one element.
*/
takeScreenshot(selector: MugshotSelector, options?: ScreenshotOptions): Promise;
}