/** * PDF Exporter - Main orchestrator for PDF document generation. * * Coordinates the layout engine, page renderer, font manager, and PDF writer * to produce a complete PDF document from a PdfWorkbook data structure. * * This module is fully independent of the Excel module. * It is used internally by the public `pdf()` and `excelToPdf()` APIs. */ import { type PdfWorkbook, type PdfExportOptions } from "../types.js"; /** * Export a PdfWorkbook to PDF format. * Yields to the event loop between each output page during layout and rendering. * * @param workbook - The workbook data to export * @param options - Export options controlling layout, pagination, and appearance * @returns Promise of PDF file as a Uint8Array * @throws {PdfError} If the workbook has no sheets or export fails */ export declare function exportPdf(workbook: PdfWorkbook, options?: PdfExportOptions): Promise;