UNPKG

mindee

Version:

Mindee Client Library for Node.js

30 lines (29 loc) 984 B
import { StringDict } from "../../../parsing/index.js"; import { LocalInputSource } from "../../../input/index.js"; import { ExtractionResponse } from "../../../v2/product/index.js"; import { ExtractedPdf } from "../../../pdf/index.js"; /** * Split inference result. */ export declare class SplitRange { /** * 0-based page indexes, where the first integer indicates the start page and the * second integer indicates the end page. */ pageRange: number[]; /** * The document type, as identified on given classification values. */ documentType: string; /** * The extraction response associated with the split. */ extractionResponse?: ExtractionResponse; constructor(serverResponse: StringDict); toString(): string; /** * Extracts a single split from the input file. * @param inputSource The input file to extract from. */ extractFromFile(inputSource: LocalInputSource): Promise<ExtractedPdf>; }