import type { Annotation, WidgetBrandColors } from '../types.js'; import type { Rect, ScrollOffset } from './geometry.js'; export interface BaseScreenshot { dataUrl: string; metrics: Rect; redactions: Rect[]; /** * Where the page was scrolled when the bitmap was measured. The bake happens * later — the reporter is still typing — so it cannot read this itself, and * annotations that carry their own anchor need it to come back to this * capture's frame. */ pageScroll: ScrollOffset; } export declare function warmFontEmbedCss(): Promise; export type ScreenshotResourceUrlResolver = (resourceUrl: string, contentType?: string) => string | undefined | Promise; export declare function captureBaseScreenshot(resourceUrlResolver?: ScreenshotResourceUrlResolver, signal?: AbortSignal): Promise; export declare function bakeAnnotatedScreenshot(base: BaseScreenshot, annotations?: Annotation[], brandColors?: WidgetBrandColors): Promise; export declare function captureScreenshot(annotations?: Annotation[], brandColors?: WidgetBrandColors): Promise; //# sourceMappingURL=capture.d.ts.map