import { ParsedTtf } from '../core/font/index.js'; /** A font for {@link renderPlainTextPdf}: an already-parsed TTF or its raw bytes. */ export type FontInput = ParsedTtf | { readonly bytes: Uint8Array; }; /** Options for {@link renderPlainTextPdf}; every layout dimension defaults (A4, 72pt margins, 12pt text). */ export interface TextRenderOptions { readonly font: FontInput; readonly pageWidth?: number; readonly pageHeight?: number; readonly marginLeft?: number; readonly marginRight?: number; readonly marginTop?: number; readonly marginBottom?: number; readonly fontSize?: number; /** Baseline-to-baseline distance in points; defaults to `1.2 × fontSize`. */ readonly lineHeight?: number; } /** * Render plain-text paragraphs to a single-font PDF, paginating greedily with * real TTF metrics and embedding the subset font. * * @param paragraphs One string per paragraph; empty strings become blank lines. * @param options The font plus optional page geometry and type size. * @returns The encoded PDF bytes. */ export declare function renderPlainTextPdf(paragraphs: ReadonlyArray, options: TextRenderOptions): Uint8Array;