import type { ScreenshotAnnotation } from "./contract.js"; import { type Box, type SnapshotRef } from "./snapshot.js"; export declare class ScreenshotAnnotationError extends Error { constructor(message: string, options?: ErrorOptions); } export interface AnnotateScreenshotOptions { jpeg: Buffer; refs: readonly SnapshotRef[]; /** Full screencast frame bounds in the same logical coordinate space as snapshot refs. */ frame: Box; /** Visible page bounds used to clip refs, which may be inset within the frame. */ viewport: Box; quality?: number; } export interface AnnotatedScreenshot { jpeg: Buffer; width: number; height: number; annotations: ScreenshotAnnotation[]; } /** Draw numbered snapshot refs into a JPEG and return matching pixel-space metadata. */ export declare function annotateScreenshot(options: AnnotateScreenshotOptions): AnnotatedScreenshot;