import type { jsPDF as JsPdf } from 'jspdf'; import type { WorkPdfPageBounds } from './work-pdf-text-layer'; export interface WorkPdfTableCellStruct { alt: string; header: boolean; } export interface WorkPdfTableRowStruct { cells: WorkPdfTableCellStruct[]; } export interface WorkPdfTableStruct { rows: WorkPdfTableRowStruct[]; } /** * Collects simple HTML tables that intersect the page bounds. Cell `/Alt` * uses trimmed text content; empty cells keep an empty alt. Not a PDF/UA * certification claim. */ export declare function collectWorkPdfTableStructs(root: ParentNode, page: WorkPdfPageBounds): WorkPdfTableStruct[]; /** * Registers `/Table` → `/TR` → `/TH`|`/TD` StructElems for collected tables on * the current PDF page. */ export declare function appendWorkPdfTableStructEntries(pdf: JsPdf, tables: readonly WorkPdfTableStruct[]): void;