UNPKG

@scribelabsai/amazon-trp

Version:

Amazon Textract Response Parser library for Node.

21 lines 661 B
import { Form, Field } from './Form'; import { Geometry } from './Geometry'; import { Line } from './Line'; import { Table } from './Table'; import type { BlockStruct, BlockMap } from './BlockStruct'; export declare class Page { blocks: BlockStruct[]; text: string; lines: Line[]; form: Form; tables: Table[]; geometry?: Geometry; id: string; content: (Line | Table | Form | Field)[]; constructor(blocks: BlockStruct[], blockMap: BlockMap); toString(): string; parse(blockMap: BlockMap): void; getLinesInReadingOrder(): [number, string][]; getTextInReadingOrder(): string; } //# sourceMappingURL=Page.d.ts.map