export declare const QA_RENDER_MAX_HTML_BYTES: number; export declare const QA_RENDER_MIN_WIDTH = 320; export declare const QA_RENDER_MAX_WIDTH = 2400; export declare const QA_RENDER_TIMEOUT_MS = 10000; export interface RenderImageResult { ok: boolean; buffer?: Buffer; width?: number; height?: number; error?: string; } /** Lock the agent's HTML into a document that cannot call out or run script. */ export declare function wrapRenderDocument(html: string, title: string): string; /** * Render agent HTML to a PNG buffer. `drivenTargetId` restores focus to the * page under test afterwards (pass undefined when unknown). */ export declare function renderHtmlToImage(port: number, html: string, opts?: { width?: number; drivenTargetId?: string; title?: string; }): Promise; /** * Render agent HTML to a PDF buffer (forms that demand a document upload). * Same tab machinery as the PNG path. */ export declare function renderHtmlToPdf(port: number, html: string, opts?: { drivenTargetId?: string; title?: string; }): Promise;