UNPKG

@scribelabsai/amazon-trp

Version:

Amazon Textract Response Parser library for Node.

13 lines 430 B
import { Page } from './Page'; import type { BlockMap, BlockStruct } from './BlockStruct'; export declare class Document { pages: Page[]; blocks: BlockStruct[]; blockMap: BlockMap; constructor(blocks: BlockStruct[]); toString(): string; parse(): void; getBlockById(blockId: string): BlockStruct | undefined; static fromFile(file: string): Promise<Document>; } //# sourceMappingURL=Document.d.ts.map