/** * PDF text extraction and structural repair module (ADR-0006). * * Hybrid architecture: * 1. Opportunistic system delegation to `pdftotext` and `qpdf` when installed. * 2. Self-contained pure-Node fallback using zlib stream inflation and * PDF text operator extraction (BT/ET, Tj, TJ, Td, hex strings) so Scoutline * runs without mandatory system dependencies. */ /** * Check whether a buffer begins with a valid PDF header (%PDF-). */ export declare function isPdfBuffer(buffer: Buffer): boolean; /** * Extract text from a PDF buffer using opportunistic delegation or pure-Node fallback. */ export declare function extractPdfText(buffer: Buffer, timeoutMs?: number): Promise; /** * Attempt structural repair on damaged PDFs (e.g. broken xref table). */ export declare function repairPdf(buffer: Buffer, timeoutMs?: number): Promise; //# sourceMappingURL=pdf.d.ts.map