/** * html2canvas-pro library loader * * Loads the html2canvas-pro library from node_modules and provides it as a string * that can be injected into the webview. html2canvas-pro is a fork of html2canvas * that adds support for modern CSS color functions like oklch(), oklab(), lab(), * lch(), and color(). */ /** Script ID used for the html2canvas library in the script registry. */ export declare const HTML2CANVAS_SCRIPT_ID = "__mcp_html2canvas__"; /** * Get the html2canvas-pro library source code. * Loaded lazily and cached. */ export declare function getHtml2CanvasSource(): string; export declare const HTML2CANVAS_RESOLVER_SCRIPT = "\n // Get the html2canvas function (may be on window, self, or globalThis)\n const html2canvasFn = typeof html2canvas !== 'undefined' ? html2canvas :\n (typeof window !== 'undefined' && window.html2canvas) ? window.html2canvas :\n (typeof self !== 'undefined' && self.html2canvas) ? self.html2canvas :\n (typeof globalThis !== 'undefined' && globalThis.html2canvas) ? globalThis.html2canvas : null;\n\n if (!html2canvasFn) {\n throw new Error('html2canvas not loaded');\n }\n"; export declare const HTML2CANVAS_OPTIONS_SCRIPT = "{\n backgroundColor: null,\n scale: window.devicePixelRatio || 1,\n logging: false,\n useCORS: true,\n allowTaint: false,\n imageTimeout: 5000,\n }"; /** * Build a script that captures a screenshot using html2canvas. * Assumes html2canvas is already loaded (either via script manager or inline). */ export declare function buildScreenshotCaptureScript(format: 'png' | 'jpeg', quality: number): string; /** * Build a script that injects html2canvas and captures a screenshot. * This is the legacy function that inlines the library - kept for fallback. */ export declare function buildScreenshotScript(format: 'png' | 'jpeg', quality: number): string;