import { TestContext } from "@storybook/test-runner"; import { ResolvedScreenshotOptions, ScreenshotContext, ScreenshotHook, ScreenshotOptions, ScreenshotOutputOptions, ScreenshotParameters } from "@storycap-testrun/internal"; import { Page } from "playwright"; //#region src/context.d.ts /** * Screenshot context for Node.js environment with story title information */ export type NodeScreenshotContext = ScreenshotContext & { title: string; }; //#endregion //#region src/options.d.ts /** * Screenshot options for Node.js environment with Playwright */ export type NodeScreenshotOptions = ScreenshotOptions & { output?: ScreenshotOutputOptions; }; /** * Resolved screenshot options for Node.js environment with Playwright */ export type NodeResolvedScreenshotOptions = ResolvedScreenshotOptions; //#endregion //#region src/hooks/types.d.ts /** * Screenshot hook type for Node.js environment with Playwright */ export type NodeScreenshotHook = ScreenshotHook; //#endregion //#region src/screenshot.d.ts /** * Captures screenshot in Node.js environment using Playwright and Storybook test context */ export declare const screenshot: (page: Page, context: TestContext, options?: NodeScreenshotOptions) => Promise; //#endregion export type { ScreenshotParameters }; //# sourceMappingURL=index.d.mts.map