import { i as CellTypeInferenceSink } from "../cell-typing-BQ-xQ5X5.cjs"; import { o as StructureIndex } from "../reconstruct-D4TEteZ6.cjs"; import { RecoveredTable } from "./reconstruct-presentations-prod.cjs"; import { GridLattice } from "./lattice.cjs"; import { ContentSheetCell, ContentSheetColumn, ContentSheetRow } from "document-schema.js"; import { LayoutPage, LayoutText } from "pdf-codec"; //#region src/layout/reconstruct-tables.d.ts declare function recoverTables(page: LayoutPage, pageIndex: number, structure: StructureIndex | undefined): RecoveredTable[]; interface CellTypingContext { readonly sheetIndex: number; readonly sink?: CellTypeInferenceSink; } interface ReconstructedGrid { readonly cells: ContentSheetCell[]; readonly columns: ContentSheetColumn[]; readonly rows: ContentSheetRow[]; readonly gridlines: boolean; } declare function buildGridFromLattice(textItems: readonly LayoutText[], lattice: GridLattice, pageIndex: number, context: CellTypingContext): ReconstructedGrid; declare function buildGridFromTextClustering(textItems: readonly LayoutText[], pageIndex: number, context: CellTypingContext): ReconstructedGrid; //#endregion export { CellTypingContext, buildGridFromLattice, buildGridFromTextClustering, recoverTables };