UNPKG

@bugspotter/sdk

Version:

Professional bug reporting SDK with screenshots, session replay, and automatic error capture for web applications

20 lines (19 loc) 701 B
import { BaseCapture, type CaptureOptions } from './base-capture'; export interface ScreenshotCaptureOptions extends CaptureOptions { quality?: number; pixelRatio?: number; backgroundColor?: string; cacheBust?: boolean; targetElement?: HTMLElement; excludeAttribute?: string; width?: number; height?: number; errorPlaceholder?: string; } export declare class ScreenshotCapture extends BaseCapture<Promise<string>, ScreenshotCaptureOptions> { constructor(options?: ScreenshotCaptureOptions); protected getErrorPlaceholder(): string; private shouldIncludeNode; private buildCaptureOptions; capture(targetElement?: HTMLElement): Promise<string>; }