import { CellContent } from "../../types"; import { PDFFont } from "pdf-lib"; /** * Calculates the total height of a table and the height of each row. * If overrideHeights are provided, it uses them to calculate the total height instead. * * @param {CellContent[][]} table - The table data as a 2D array of cell contents. * @param {number[]} columnWidths - The widths of each column in the table. * @param {PDFFont} font - The default font for table content. * @param {number} textSize - The default font size for table content. * @param {number} lineHeight - The default line height for table content. * @param {boolean} hasHeader - Indicates whether the table has a header row. * @param {PDFFont} headerFont - The font for the header row. * @param {number} headerTextSize - The font size for the header row. * @param {number} headerLineHeight - The line height for the header row. * @param {number} horizontalWrapMargin - The horizontal margin for wrapping text in cells. * @param {number} verticalMargin - The vertical margin for cells. * @param {number} borderMargin - The margin for the border of the table. * @param {string} [tableTitle] - The optional title of the table. * @param {number} [tableTitleTextSize] - The optional font size for the table title. * @param {number[]} [overrideHeights] - Optional array of heights to override the calculated row heights. * @returns {Promise<{ totalHeight: number, rowHeights: number[] }>} An object containing the total height of the table and an array of heights for each row. */ export declare function calcTableHeight(table: CellContent[][], columnWidths: number[], font: PDFFont, textSize: number, lineHeight: number, hasHeader: boolean, headerFont: PDFFont, headerTextSize: number, headerLineHeight: number, horizontalWrapMargin: number, verticalMargin: number, borderMargin: number, tableTitle?: string, tableTitleTextSize?: number, overrideHeights?: number[]): Promise<{ totalHeight: number; rowHeights: number[]; }>; export declare function calcRowHeight(row: CellContent[], columnWidths: number[], font: PDFFont, textSize: number, lineHeight: number, horizontalWrapMargin: number, verticalCellPadding: number, borderMargin: number): Promise;