import { Browser } from "puppeteer"; import { Example } from "../../types"; export interface GenerateScreenshotConfig { /** * Leave the contexts and tabs open for inspection, also don't delete the * temporary pages. */ debug: boolean; /** The example for which the screenshot will be generated. */ example: Example; /** Height of the captured screenshot. */ height: number; /** A script to be executed as the first thing on the page. */ screenshotScript: string; /** Width of the captured screenshot. */ width: number; } /** * Capture an element on the example's page and save the screenshot to the * disk as a PNG file. * @param browser - Puppeteer's browser instance. * @param config - See the type's docs for detail. * @returns Whether or not the screenshot passed validation check. */ export declare function generateScreenshot(browser: Browser, config: GenerateScreenshotConfig): Promise; //# sourceMappingURL=index.d.ts.map