import type { Logger } from "pino"; export declare const PDF_DEFAULT_MAX_PAGES = 4; export declare const PDF_DEFAULT_MAX_PIXELS = 4000000; export declare const PDF_DEFAULT_MIN_TEXT_CHARS = 200; export type PdfExtractImage = { type: "image"; data: string; mimeType: "image/png"; }; export type PdfExtractOptions = { maxPages?: number; maxPixels?: number; minTextChars?: number; includeImagesWhenTextMissing?: boolean; logger?: Logger; }; export type PdfExtractResult = { text: string; images: PdfExtractImage[]; pagesProcessed: number; totalPages: number; }; /** * Extracts PDF text and falls back to page image rendering when text is sparse. * Expects: input buffer is a valid PDF payload. */ export declare function pdfExtract(buffer: Buffer, options?: PdfExtractOptions): Promise; /** * Checks whether a buffer starts with a PDF file signature. * Expects: any binary payload. */ export declare function pdfSignatureIs(data: Buffer): boolean; //# sourceMappingURL=pdfExtract.d.ts.map