import type * as pdfLibTypes from "@cantoo/pdf-lib"; import { Polygon } from "../geometry/index.js"; import { ExtractedImages } from "./extractedImages.js"; import { LocalInputSource } from "../input/index.js"; /** * Extracts elements from a PDF document based on a list of bounding boxes. * @param inputSource The input source to extract from. * @param polygonsPerPage List of polygons to extract from per page. * @param quality JPEG quality of extracted images. */ export declare function extractImagesFromPolygon(inputSource: LocalInputSource, polygonsPerPage: Map, quality?: number): Promise; /** * Extract images from a PDF page. * @param pdfPage The PDF page to extract images from. * @param polygons The polygons to extract images from. * @param asImage Whether to return the extracted images as images or as raw data. * @param quality The quality of the extracted images. */ export declare function extractFromPage(pdfPage: pdfLibTypes.PDFPage, polygons: Polygon[], asImage?: boolean, quality?: number): Promise[]>;