/** * Document to PDF Converter tool. * Converts a .docx document to a pixel-perfect PDF using LibreOffice WASM. * Preserves all formatting, headings, tables, images, headers/footers. * * Source resolution (2026-09): accepts whatever the caller actually has - * - a Buffer materialized from a `Url` param (materializeUrlParams), * - ANY absolute-URL alias (fileUrl, inputDocxUrl, url, sourceUrl, ...), * - a TeamShare document id (render-chain / agents), * - a relative storage value (`docs/`) resolved through the API. * A direct fetch failure (401/403/404/network) falls back to the * authenticated `GET /documents/:id/download` route, so signed Cloudinary * URLs and local-storage deployments both work - "the bridge resolves it". */ import type { ToolModule, ToolResult, ToolRunContext } from './runner'; export declare class DocxToPdfTool implements ToolModule { key: string; run(params: Record, ctx?: ToolRunContext): Promise; }