UNPKG

mindee

Version:

Mindee Client Library for Node.js

14 lines (13 loc) 868 B
import { InvoiceSplitterV1 } from "../../../v1/product/index.js"; import { LocalInputSource } from "../../../input/index.js"; import { ExtractedInvoiceSplitterImage } from "../../../v1/extraction/index.js"; /** * Extracts & cuts the pages of a main document invoice according to the provided indexes. * * @param inputFile File to extract sub-invoices from. * @param indexes List of indexes to cut the document according to. * Can be provided either as a InvoiceSplitterV1 inference, or a direct list of splits. * @param strict If set to true, doesn't cut pages where the API isn't 100% confident. * @returns A promise of extracted images, as an array of ExtractedInvoiceSplitterImage. */ export declare function extractInvoices(inputFile: LocalInputSource, indexes: InvoiceSplitterV1 | number[][], strict?: boolean): Promise<ExtractedInvoiceSplitterImage[]>;