import { ScreenshotContext, ScreenshotOutputOptions, ScreenshotViewportConfig } from "@storycap-testrun/internal"; import { Plugin } from "vitest/config"; //#region src/context.d.ts /** * Screenshot context for browser environment with test file information */ type BrowserScreenshotContext = ScreenshotContext & { file: string; }; //#endregion //#region src/vitest-plugin/index.d.ts export type ResolveScreenshotFilepathParams = [context: BrowserScreenshotContext]; export type ResolveScreenshotFilepathResult = Promise; export type TakeScreenshotParams = [filepath: string, options: { fullPage?: boolean; omitBackground?: boolean; scale?: "css" | "device"; type?: "jpeg" | "png"; viewport?: ScreenshotViewportConfig | null; }]; export type TakeScreenshotResult = Promise; export type PrepareViewportParams = [viewportOverride?: ScreenshotViewportConfig | null]; export type PrepareViewportResult = Promise; export type RestoreViewportParams = []; export type RestoreViewportResult = Promise; /** * Configuration options for Vitest screenshot plugin */ export type VitestStorycapPluginOptions = { output?: ScreenshotOutputOptions; viewport?: { width: number; height: number; }; }; /** * Vitest plugin that adds screenshot capture commands to browser context */ export default function vitestStorycapPluginOptions(options?: VitestStorycapPluginOptions): Plugin; //#endregion //# sourceMappingURL=index.d.mts.map