import type * as t from "./vendor/pdfium"; import { PDFiumPage } from "./page"; export declare class PDFiumDocument { private readonly module; private readonly documentIdx; private readonly documentPtr; constructor(options: { module: t.PDFium; documentIdx: number; documentPtr: number; }); /** * Get a page from the document by its index. The index is zero-based. */ getPage(pageIndex: number): PDFiumPage; /** * User-friendly iterator to iterate over all pages in the document. */ pages(): Generator; /** * Get the number of pages in the document. */ getPageCount(): number; /** * After you're done with the document, you should destroy it to free the memory. * * Otherwise, you'll be fired from your job for causing a memory leak. 😱 */ destroy(): void; }