import type { Connector } from "../index.js"; export interface CaptureScreenshotOptions { fullscreen?: boolean; quality?: number; signal?: AbortSignal; timeoutMs?: number; } /** Coordinate metadata attached to `Page.screencastFrame` by the Lynx runtime. */ export interface ScreencastFrameMetadata { offsetTop?: number; pageScaleFactor?: number; deviceWidth?: number; deviceHeight?: number; scrollOffsetX?: number; scrollOffsetY?: number; timestamp?: number; } export interface CapturedScreenshot { data: string; metadata?: ScreencastFrameMetadata; } export declare class ScreenshotTimeoutError extends Error { constructor(timeoutMs: number, phase?: "frame" | "acknowledgement"); } /** Capture one JPEG screencast frame, including its logical coordinate metadata. */ export declare function captureScreenshotFrame(connector: Connector, clientId: string, sessionId: number, options?: CaptureScreenshotOptions): Promise; /** Capture one JPEG screencast frame and return only its base64 image data. */ export declare function captureScreenshot(connector: Connector, clientId: string, sessionId: number, options?: CaptureScreenshotOptions): Promise;