@cappa/core 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BrowserConfig, BrowserInstance, BrowserName, BrowserProvider, ContainerOptions, DEFAULT_CONTAINER_IMAGE, PlaywrightProviderOptions, ResolvedBrowserConfig, ResolvedContainerOptions, playwright, resolveBrowserConfig, resolveContainerOptions } from "./playwright.cjs";
1
2
  import { BoundingBox, ChangeRegion, InterpretResult, InterpretResult as InterpretResult$1 } from "@blazediff/interpret-native";
2
3
  import "@blazediff/gmsd";
3
4
  import { Browser, BrowserContext, ConsoleMessage, Locator, Page } from "playwright-core";
@@ -180,6 +181,65 @@ export declare function compareImages(image1: string | Buffer, image2: string |
180
181
  */
181
182
  export declare function imagesMatch(image1: string | Buffer, image2: string | Buffer, options?: DiffConfig): Promise<boolean>;
182
183
  //#endregion
184
+ //#region src/container.d.ts
185
+ /**
186
+ * Runs the official Playwright image for an exact `playwright-core` version
187
+ * through a container CLI (docker, podman, nerdctl, …) and hands back the
188
+ * `run-server` endpoint.
189
+ *
190
+ * Only subcommands all of those CLIs share are used: `version`, `image
191
+ * inspect`, `pull`, `inspect`, `run`, `port`, `logs`, `ps` and `rm`.
192
+ */
193
+ /** Label on every container cappa starts; `removePlaywrightContainers` finds them by it. */
194
+ export declare const CONTAINER_LABEL = "dev.cappa.playwright";
195
+ type ExecResult = {
196
+ stdout: string;
197
+ stderr: string;
198
+ };
199
+ type Exec = (file: string, args: string[]) => Promise<ExecResult>;
200
+ type PlaywrightContainer = {
201
+ /** `ws://127.0.0.1:<port>/` — pass to `browserType.connect()`. */
202
+ wsEndpoint: string;
203
+ /** Container name, `cappa-playwright-v<version>-<hash>`. */
204
+ name: string;
205
+ /** The image with `{version}` filled in. */
206
+ image: string;
207
+ /** `true` when an already running container was picked up. */
208
+ reused: boolean;
209
+ /** Remove the container. */
210
+ stop(): Promise<void>;
211
+ };
212
+ type EnsureContainerOptions = Omit<ResolvedContainerOptions, "keepAlive"> & {
213
+ /** Exact `playwright-core` version, e.g. `1.63.0`. */
214
+ version: string;
215
+ /**
216
+ * The host's `playwright-core` directory (symlinks resolved). Mounted
217
+ * read-only and run as the server, so the container needs no npm access and
218
+ * runs exactly the client's version — the image only supplies OS and
219
+ * browsers.
220
+ */
221
+ packageDir: string;
222
+ log?: (message: string) => void;
223
+ /** Injection points for tests. */
224
+ exec?: Exec;
225
+ probe?: (url: string) => Promise<boolean>;
226
+ sleep?: (ms: number) => Promise<void>;
227
+ now?: () => number;
228
+ };
229
+ /**
230
+ * Start — or reuse — the Playwright server container for `version` and wait
231
+ * until it accepts connections.
232
+ */
233
+ export declare function ensurePlaywrightContainer(options: EnsureContainerOptions): Promise<PlaywrightContainer>;
234
+ /**
235
+ * Remove every container cappa started, whatever its version. Returns their
236
+ * names.
237
+ */
238
+ export declare function removePlaywrightContainers(options: {
239
+ cli: string;
240
+ exec?: Exec;
241
+ }): Promise<string[]>;
242
+ //#endregion
183
243
  //#region src/filesystem.d.ts
184
244
  /**
185
245
  * Map a diff image path to its sidecar metadata path (`.png` -> `.json`).
@@ -598,8 +658,16 @@ type ScreenshotLogSink = (level: RunLogLevel, message: string, ...args: unknown[
598
658
  */
599
659
  type ScreenshotCaptureSink = (page: Page, filename: string) => void;
600
660
  declare class ScreenshotTool {
601
- browserType: "chromium" | "firefox" | "webkit";
661
+ browserType: BrowserName;
602
662
  headless: boolean;
663
+ /** Browser provider, headless mode and instance — see `UserConfig.browser`. */
664
+ browserConfig: ResolvedBrowserConfig;
665
+ /**
666
+ * Set when the browser goes away underneath the tool — a remote browser
667
+ * server restarting, or a local browser crashing. `WarmBrowser` checks it so
668
+ * it starts a fresh browser instead of handing out a dead one.
669
+ */
670
+ disconnected: boolean;
603
671
  viewport: {
604
672
  width: number;
605
673
  height: number;
@@ -627,13 +695,20 @@ declare class ScreenshotTool {
627
695
  filesystem: ScreenshotFileSystem;
628
696
  logConsoleEvents: LogConsoleEvents;
629
697
  connectionTimeout: number;
698
+ /** The container `init()` started or reused, when `container` is on. */
699
+ container: PlaywrightContainer | null;
630
700
  private defaultUserAgent;
631
701
  /** The real logger, kept so `setLogSink(null)` restores the same instance. */
632
702
  private readonly baseLogger;
633
703
  /** Set while a `CaptureRunner` owns this tool — see `setCaptureSink`. */
634
704
  private captureSink;
635
705
  constructor(options: {
636
- browserType?: "chromium" | "firefox" | "webkit";
706
+ /**
707
+ * Provider, headless mode and instance. When given, `browserType` and
708
+ * `headless` are ignored — they are derived from it.
709
+ */
710
+ browser?: BrowserConfig;
711
+ browserType?: BrowserName;
637
712
  headless?: boolean;
638
713
  viewport?: {
639
714
  width: number;
@@ -681,6 +756,10 @@ declare class ScreenshotTool {
681
756
  init(): Promise<void>;
682
757
  /**
683
758
  * Create the pool of browser contexts and pages.
759
+ *
760
+ * `contextOptions` from the provider merge over cappa's defaults; the
761
+ * viewport and the `CappaStorybook` user-agent suffix always win, because
762
+ * plugins and `isCappa()` rely on them.
684
763
  */
685
764
  private createContexts;
686
765
  /**
@@ -1096,6 +1175,21 @@ type UserConfig = {
1096
1175
  */
1097
1176
  crop?: CropSetting;
1098
1177
  };
1178
+ /**
1179
+ * The browser screenshots are taken in. Shaped like Vitest browser mode's
1180
+ * `browser` block.
1181
+ *
1182
+ * @example
1183
+ * import { playwright } from "@cappa/core/playwright";
1184
+ *
1185
+ * browser: {
1186
+ * provider: playwright({
1187
+ * // unset → cappa launches a local browser
1188
+ * connectOptions: { wsEndpoint: process.env.CAPPA_BROWSER_WS },
1189
+ * }),
1190
+ * }
1191
+ */
1192
+ browser?: BrowserConfig;
1099
1193
  /**
1100
1194
  * Configuration for the review UI.
1101
1195
  */
@@ -1966,6 +2060,8 @@ type LocalEngineOptions = {
1966
2060
  crop?: CropSetting;
1967
2061
  viewport?: Viewport;
1968
2062
  connectionTimeout?: number;
2063
+ /** Provider, headless mode and instance — see `UserConfig.browser`. */
2064
+ browser?: BrowserConfig;
1969
2065
  /**
1970
2066
  * How long the browser stays warm between runs.
1971
2067
  * @default 300_000 (5 minutes)
@@ -2647,5 +2743,5 @@ export declare function findRefusedConnection(error: unknown): RefusedConnection
2647
2743
  */
2648
2744
  export declare function sameServer(a: string, b: string): boolean;
2649
2745
  //#endregion
2650
- export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, type ResolvedWebServerConfig, type RunAgentCheckOptions, type RunDetail, type RunEvent, type RunEventListener, type RunEventType, type RunLogLevel, type RunState, type RunStoreOptions, type RunSummary, type RunTrigger, type RunnablePlugin, type Screenshot, type ScreenshotBucket, type ScreenshotCaptureDetails, type ScreenshotCaptureExtras, type ScreenshotCaptureResult, type ScreenshotCaptureSink, type ScreenshotOptions, type ScreenshotOrigin, type ScreenshotQuery, type ScreenshotSettings, type ScreenshotStore, ScreenshotTool, type ScreenshotVariant, type ScreenshotVariantCaptureDetails, type ScreenshotVariantWithUrl, type SerializedError, type ServerProcess, type SlimAgentReport, type SpawnServerOptions, type StartRunRequest, type StartWatchRequest, type SubscribeOptions, type Target, type TaskFailure, type TaskRecord, type TaskStatus, type TileOptions, type TileResult, type UserConfig, type Verdict, type VerdictAction, type VerdictLabel, type Viewport, type WaitForUrlOptions, type WaitForUrlResult, type WarmBrowserOptions, type WatchChange, type WatchEvent, type WatchEventType, type WatchScope, type WatchSessionOptions, type WatchStatus, type WebServerConfig, type WebServerLog, type WebServerLogLevel, type WebServerPoolOptions };
2746
+ export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type BrowserConfig, type BrowserInstance, type BrowserName, type BrowserProvider, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContainerOptions, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, DEFAULT_CONTAINER_IMAGE, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type PlaywrightContainer, type PlaywrightProviderOptions, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, type ResolvedBrowserConfig, type ResolvedContainerOptions, type ResolvedWebServerConfig, type RunAgentCheckOptions, type RunDetail, type RunEvent, type RunEventListener, type RunEventType, type RunLogLevel, type RunState, type RunStoreOptions, type RunSummary, type RunTrigger, type RunnablePlugin, type Screenshot, type ScreenshotBucket, type ScreenshotCaptureDetails, type ScreenshotCaptureExtras, type ScreenshotCaptureResult, type ScreenshotCaptureSink, type ScreenshotOptions, type ScreenshotOrigin, type ScreenshotQuery, type ScreenshotSettings, type ScreenshotStore, ScreenshotTool, type ScreenshotVariant, type ScreenshotVariantCaptureDetails, type ScreenshotVariantWithUrl, type SerializedError, type ServerProcess, type SlimAgentReport, type SpawnServerOptions, type StartRunRequest, type StartWatchRequest, type SubscribeOptions, type Target, type TaskFailure, type TaskRecord, type TaskStatus, type TileOptions, type TileResult, type UserConfig, type Verdict, type VerdictAction, type VerdictLabel, type Viewport, type WaitForUrlOptions, type WaitForUrlResult, type WarmBrowserOptions, type WatchChange, type WatchEvent, type WatchEventType, type WatchScope, type WatchSessionOptions, type WatchStatus, type WebServerConfig, type WebServerLog, type WebServerLogLevel, type WebServerPoolOptions, playwright, resolveBrowserConfig, resolveContainerOptions };
2651
2747
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BrowserConfig, BrowserInstance, BrowserName, BrowserProvider, ContainerOptions, DEFAULT_CONTAINER_IMAGE, PlaywrightProviderOptions, ResolvedBrowserConfig, ResolvedContainerOptions, playwright, resolveBrowserConfig, resolveContainerOptions } from "./playwright.mjs";
1
2
  import "@blazediff/gmsd";
2
3
  import { Logger } from "@cappa/logger";
3
4
  import "@blazediff/core-native";
@@ -180,6 +181,65 @@ export declare function compareImages(image1: string | Buffer, image2: string |
180
181
  */
181
182
  export declare function imagesMatch(image1: string | Buffer, image2: string | Buffer, options?: DiffConfig): Promise<boolean>;
182
183
  //#endregion
184
+ //#region src/container.d.ts
185
+ /**
186
+ * Runs the official Playwright image for an exact `playwright-core` version
187
+ * through a container CLI (docker, podman, nerdctl, …) and hands back the
188
+ * `run-server` endpoint.
189
+ *
190
+ * Only subcommands all of those CLIs share are used: `version`, `image
191
+ * inspect`, `pull`, `inspect`, `run`, `port`, `logs`, `ps` and `rm`.
192
+ */
193
+ /** Label on every container cappa starts; `removePlaywrightContainers` finds them by it. */
194
+ export declare const CONTAINER_LABEL = "dev.cappa.playwright";
195
+ type ExecResult = {
196
+ stdout: string;
197
+ stderr: string;
198
+ };
199
+ type Exec = (file: string, args: string[]) => Promise<ExecResult>;
200
+ type PlaywrightContainer = {
201
+ /** `ws://127.0.0.1:<port>/` — pass to `browserType.connect()`. */
202
+ wsEndpoint: string;
203
+ /** Container name, `cappa-playwright-v<version>-<hash>`. */
204
+ name: string;
205
+ /** The image with `{version}` filled in. */
206
+ image: string;
207
+ /** `true` when an already running container was picked up. */
208
+ reused: boolean;
209
+ /** Remove the container. */
210
+ stop(): Promise<void>;
211
+ };
212
+ type EnsureContainerOptions = Omit<ResolvedContainerOptions, "keepAlive"> & {
213
+ /** Exact `playwright-core` version, e.g. `1.63.0`. */
214
+ version: string;
215
+ /**
216
+ * The host's `playwright-core` directory (symlinks resolved). Mounted
217
+ * read-only and run as the server, so the container needs no npm access and
218
+ * runs exactly the client's version — the image only supplies OS and
219
+ * browsers.
220
+ */
221
+ packageDir: string;
222
+ log?: (message: string) => void;
223
+ /** Injection points for tests. */
224
+ exec?: Exec;
225
+ probe?: (url: string) => Promise<boolean>;
226
+ sleep?: (ms: number) => Promise<void>;
227
+ now?: () => number;
228
+ };
229
+ /**
230
+ * Start — or reuse — the Playwright server container for `version` and wait
231
+ * until it accepts connections.
232
+ */
233
+ export declare function ensurePlaywrightContainer(options: EnsureContainerOptions): Promise<PlaywrightContainer>;
234
+ /**
235
+ * Remove every container cappa started, whatever its version. Returns their
236
+ * names.
237
+ */
238
+ export declare function removePlaywrightContainers(options: {
239
+ cli: string;
240
+ exec?: Exec;
241
+ }): Promise<string[]>;
242
+ //#endregion
183
243
  //#region src/filesystem.d.ts
184
244
  /**
185
245
  * Map a diff image path to its sidecar metadata path (`.png` -> `.json`).
@@ -598,8 +658,16 @@ type ScreenshotLogSink = (level: RunLogLevel, message: string, ...args: unknown[
598
658
  */
599
659
  type ScreenshotCaptureSink = (page: Page, filename: string) => void;
600
660
  declare class ScreenshotTool {
601
- browserType: "chromium" | "firefox" | "webkit";
661
+ browserType: BrowserName;
602
662
  headless: boolean;
663
+ /** Browser provider, headless mode and instance — see `UserConfig.browser`. */
664
+ browserConfig: ResolvedBrowserConfig;
665
+ /**
666
+ * Set when the browser goes away underneath the tool — a remote browser
667
+ * server restarting, or a local browser crashing. `WarmBrowser` checks it so
668
+ * it starts a fresh browser instead of handing out a dead one.
669
+ */
670
+ disconnected: boolean;
603
671
  viewport: {
604
672
  width: number;
605
673
  height: number;
@@ -627,13 +695,20 @@ declare class ScreenshotTool {
627
695
  filesystem: ScreenshotFileSystem;
628
696
  logConsoleEvents: LogConsoleEvents;
629
697
  connectionTimeout: number;
698
+ /** The container `init()` started or reused, when `container` is on. */
699
+ container: PlaywrightContainer | null;
630
700
  private defaultUserAgent;
631
701
  /** The real logger, kept so `setLogSink(null)` restores the same instance. */
632
702
  private readonly baseLogger;
633
703
  /** Set while a `CaptureRunner` owns this tool — see `setCaptureSink`. */
634
704
  private captureSink;
635
705
  constructor(options: {
636
- browserType?: "chromium" | "firefox" | "webkit";
706
+ /**
707
+ * Provider, headless mode and instance. When given, `browserType` and
708
+ * `headless` are ignored — they are derived from it.
709
+ */
710
+ browser?: BrowserConfig;
711
+ browserType?: BrowserName;
637
712
  headless?: boolean;
638
713
  viewport?: {
639
714
  width: number;
@@ -681,6 +756,10 @@ declare class ScreenshotTool {
681
756
  init(): Promise<void>;
682
757
  /**
683
758
  * Create the pool of browser contexts and pages.
759
+ *
760
+ * `contextOptions` from the provider merge over cappa's defaults; the
761
+ * viewport and the `CappaStorybook` user-agent suffix always win, because
762
+ * plugins and `isCappa()` rely on them.
684
763
  */
685
764
  private createContexts;
686
765
  /**
@@ -1096,6 +1175,21 @@ type UserConfig = {
1096
1175
  */
1097
1176
  crop?: CropSetting;
1098
1177
  };
1178
+ /**
1179
+ * The browser screenshots are taken in. Shaped like Vitest browser mode's
1180
+ * `browser` block.
1181
+ *
1182
+ * @example
1183
+ * import { playwright } from "@cappa/core/playwright";
1184
+ *
1185
+ * browser: {
1186
+ * provider: playwright({
1187
+ * // unset → cappa launches a local browser
1188
+ * connectOptions: { wsEndpoint: process.env.CAPPA_BROWSER_WS },
1189
+ * }),
1190
+ * }
1191
+ */
1192
+ browser?: BrowserConfig;
1099
1193
  /**
1100
1194
  * Configuration for the review UI.
1101
1195
  */
@@ -1966,6 +2060,8 @@ type LocalEngineOptions = {
1966
2060
  crop?: CropSetting;
1967
2061
  viewport?: Viewport;
1968
2062
  connectionTimeout?: number;
2063
+ /** Provider, headless mode and instance — see `UserConfig.browser`. */
2064
+ browser?: BrowserConfig;
1969
2065
  /**
1970
2066
  * How long the browser stays warm between runs.
1971
2067
  * @default 300_000 (5 minutes)
@@ -2647,5 +2743,5 @@ export declare function findRefusedConnection(error: unknown): RefusedConnection
2647
2743
  */
2648
2744
  export declare function sameServer(a: string, b: string): boolean;
2649
2745
  //#endregion
2650
- export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, type ResolvedWebServerConfig, type RunAgentCheckOptions, type RunDetail, type RunEvent, type RunEventListener, type RunEventType, type RunLogLevel, type RunState, type RunStoreOptions, type RunSummary, type RunTrigger, type RunnablePlugin, type Screenshot, type ScreenshotBucket, type ScreenshotCaptureDetails, type ScreenshotCaptureExtras, type ScreenshotCaptureResult, type ScreenshotCaptureSink, type ScreenshotOptions, type ScreenshotOrigin, type ScreenshotQuery, type ScreenshotSettings, type ScreenshotStore, ScreenshotTool, type ScreenshotVariant, type ScreenshotVariantCaptureDetails, type ScreenshotVariantWithUrl, type SerializedError, type ServerProcess, type SlimAgentReport, type SpawnServerOptions, type StartRunRequest, type StartWatchRequest, type SubscribeOptions, type Target, type TaskFailure, type TaskRecord, type TaskStatus, type TileOptions, type TileResult, type UserConfig, type Verdict, type VerdictAction, type VerdictLabel, type Viewport, type WaitForUrlOptions, type WaitForUrlResult, type WarmBrowserOptions, type WatchChange, type WatchEvent, type WatchEventType, type WatchScope, type WatchSessionOptions, type WatchStatus, type WebServerConfig, type WebServerLog, type WebServerLogLevel, type WebServerPoolOptions };
2746
+ export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type BrowserConfig, type BrowserInstance, type BrowserName, type BrowserProvider, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContainerOptions, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, DEFAULT_CONTAINER_IMAGE, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type PlaywrightContainer, type PlaywrightProviderOptions, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, type ResolvedBrowserConfig, type ResolvedContainerOptions, type ResolvedWebServerConfig, type RunAgentCheckOptions, type RunDetail, type RunEvent, type RunEventListener, type RunEventType, type RunLogLevel, type RunState, type RunStoreOptions, type RunSummary, type RunTrigger, type RunnablePlugin, type Screenshot, type ScreenshotBucket, type ScreenshotCaptureDetails, type ScreenshotCaptureExtras, type ScreenshotCaptureResult, type ScreenshotCaptureSink, type ScreenshotOptions, type ScreenshotOrigin, type ScreenshotQuery, type ScreenshotSettings, type ScreenshotStore, ScreenshotTool, type ScreenshotVariant, type ScreenshotVariantCaptureDetails, type ScreenshotVariantWithUrl, type SerializedError, type ServerProcess, type SlimAgentReport, type SpawnServerOptions, type StartRunRequest, type StartWatchRequest, type SubscribeOptions, type Target, type TaskFailure, type TaskRecord, type TaskStatus, type TileOptions, type TileResult, type UserConfig, type Verdict, type VerdictAction, type VerdictLabel, type Viewport, type WaitForUrlOptions, type WaitForUrlResult, type WarmBrowserOptions, type WatchChange, type WatchEvent, type WatchEventType, type WatchScope, type WatchSessionOptions, type WatchStatus, type WebServerConfig, type WebServerLog, type WebServerLogLevel, type WebServerPoolOptions, playwright, resolveBrowserConfig, resolveContainerOptions };
2651
2747
  //# sourceMappingURL=index.d.mts.map