import { Schema, Template, BasePdf, CommonOptions } from './types.js'; interface ModifyTemplateForDynamicTableArg { template: Template; input: Record; _cache: Map; options: CommonOptions; getDynamicHeights: (value: string, args: { schema: Schema; basePdf: BasePdf; options: CommonOptions; _cache: Map; }) => Promise; } /** * Process a template containing tables with dynamic heights * and generate a new template with proper page breaks. * * Processing is done page-by-page: * - Pages with height changes are processed with full layout calculations * - Pages without height changes are copied as-is (no offset propagation between pages) * * This reduces computation cost by: * 1. Limiting layout calculations to pages that need them * 2. Avoiding cross-page offset propagation for static pages */ export declare const getDynamicTemplate: (arg: ModifyTemplateForDynamicTableArg) => Promise