import { Buffer } from "node:buffer"; import { BufferInput } from "../input/index.js"; /** * Represents a PDF artifact produced by an extraction/splitting operation. */ export declare class ExtractedPdf { /** * Raw bytes of the extracted PDF segment. */ readonly buffer: Buffer; /** * Filename suggested for export. */ readonly filename: string; /** * Number of pages in this extracted PDF. */ readonly pageCount: number; /** * Zero-based indexes of pages included in this extracted PDF. */ readonly pageIndexes: number[]; constructor(pdfData: Buffer, filename: string, pageIndexes: number[]); /** * Saves the document to a file. * * @param outputPath Path to save the file to. */ saveToFileAsync(outputPath: string): Promise; /** * Saves the document to a file synchronously. * @param outputPath */ saveToFile(outputPath: string): void; /** * Return the file as a Mindee-compatible BufferInput source. * * @returns A BufferInput source. */ asInputSource(): BufferInput; }