/// import { Viewport } from "../screenshot-renderer/api"; /** * ReactScreenshotTest is a builder for screenshot tests. * * Example usage: * ``` * describe("screenshots", () => { * ReactScreenshotTest.create("MyComponent") * .viewports(VIEWPORTS) * .shoot("with title", ) * .shoot("without title", ) * .run(); * }); * ``` */ export declare class ReactScreenshotTest { private readonly componentName; private readonly _viewports; private readonly _shots; private readonly _remoteStylesheetUrls; private readonly _staticPaths; private ran; /** * Creates a screenshot test. */ static create(componentName: string): ReactScreenshotTest; private constructor(); /** * Adds a set of viewports to the screenshot test. */ viewports(viewports: { [name: string]: Viewport; }): this; /** * Adds a single viewport to the screenshot test. */ viewport(viewportName: string, viewport: Viewport): this; /** * Adds a specific shot of a component to the screenshot test. */ shoot(shotName: string, component: React.ReactNode): this; remoteStylesheet(stylesheetUrl: string): this; static(mappedPath: string, dirOrFilePath: string): this; /** * Runs the actual test (delegating to Jest). */ run(): void; private render; }