/** * Browser Renderer - Phase 2 Lambda Architecture * * This module provides web page rendering with three-tier fallback: * 1. Lambda renderer (Playwright on AWS Lambda x86_64) - if VISUS_RENDERER_URL set * 2. Local undici fetch() - fallback if Lambda unavailable * 3. Local Playwright - fallback if fetch() fails (e.g., SSL errors on macOS) * * CRITICAL: The sanitizer ALWAYS runs locally. Rendered HTML is returned from * Lambda to the local process before Claude sees it. PHI never touches Lateos infrastructure. */ import type { BrowserRenderResult, Result } from '../types.js'; /** * Render a web page using the best available renderer * * Rendering strategy: * 1. Lambda renderer (if VISUS_RENDERER_URL is set) * 2. Undici fetch() (fallback) * 3. If fetch fails with network error AND Lambda available → retry with Lambda * 4. If fetch fails and Lambda not available → use local Playwright * * @param url - The URL to fetch * @param options - Rendering options * @returns Result containing the page HTML and metadata */ export declare function renderPage(url: string, options?: { timeout_ms?: number; format?: 'html' | 'text' | 'markdown'; }): Promise>; /** * Check if a URL is accessible * * @param url - The URL to check * @param timeout_ms - Request timeout in milliseconds * @returns Result indicating if the URL is accessible */ export declare function checkUrl(url: string, timeout_ms?: number): Promise>; /** * Close browser instance and clean up resources * (No-op in Lambda architecture - included for compatibility) */ export declare function closeBrowser(): Promise; //# sourceMappingURL=playwright-renderer.d.ts.map