import type { Action, BeforeScreenshotOption } from '../../interfaces'; import type { Page } from 'puppeteer'; export interface ScreenerOptions { root: string; destPath: string; name?: string; screenSize?: number; elementSelector?: string; toViewportSize?: boolean; disableLogs?: boolean; beforeScreenshotOptions?: BeforeScreenshotOption[]; } export interface ThumbScreenerOptions extends Omit { destPath?: string; } export default class Screener implements Action { readonly name: string; private root; private elementSelector; private destPath; private screenSize?; private toViewportSize; private type; private logger; private disableLogs; beforeScreenshotOptions?: BeforeScreenshotOption[]; constructor({ root, elementSelector, destPath, screenSize, toViewportSize, name, disableLogs, beforeScreenshotOptions }: ScreenerOptions); execute(slideId: string, page: Page, destPath?: string): Promise; private getDestination; private log; private beforeScreenshots; }