import type { CompressOptions } from './types.js'; type PdfInput = Buffer | string; /** * Compresses a PDF document. Automatically repairs damaged PDFs. * * By default (lossless), deduplicates images, re-encodes very high quality * JPEGs (q91+) at q85, downscales images to 150 DPI, optimizes embedded * JPEG Huffman tables, recompresses all streams with Flate level 9, * generates object streams, and removes unreferenced objects. * * With `lossy: true`, uses more aggressive image re-encoding (skips JPEGs * at q65 or below, re-encodes the rest at q75) and downscales to 72 DPI. * Text, vectors, and fonts are preserved. */ export declare function compress(input: PdfInput, options: CompressOptions & { output: string; }): Promise; export declare function compress(input: PdfInput, options?: CompressOptions): Promise; export { concurrency } from './concurrency.js'; export type { CompressOptions } from './types.js'; //# sourceMappingURL=index.d.ts.map