/** * This file was auto-generated by Fern from our API Definition. */ import * as Airtop from "../index"; export interface ScreenshotConfig { /** Format of the screenshot response. 'base64' returns the image as base64-encoded data. 'url' uploads the screenshot to asset storage and returns a signed download URL. Defaults to 'base64' for viewport scope, 'url' for other scopes. */ format?: Airtop.ScreenshotConfigFormat; /** Maximum height of the screenshot in pixels. The screenshot will be scaled down to fit within this height if necessary, preserving the aspect ratio. */ maxHeight?: number; /** Maximum width of the screenshot in pixels. The screenshot will be scaled down to fit within this width if necessary, preserving the aspect ratio. */ maxWidth?: number; /** JPEG quality (1-100). Note that this option is still in development and may not work as expected. */ quality?: number; /** [Deprecated] Whether to capture the current viewport or whole page. Use visualAnalysis.scope instead. Only viewport is currently supported when used directly. */ scope?: Airtop.ScreenshotConfigScope; /** Visual analysis configuration. When provided, the scope setting here takes precedence over the top-level scope field. */ visualAnalysis?: Airtop.VisualAnalysisConfig; }