import type { PdfRedaction } from "./pdf-redaction.js"; type RelativeRect = { rx: number; ry: number; rw: number; rh: number; }; /** * Render all redacted pages to PNG via PDF.js, burning black boxes permanently * onto the canvas so no text survives in the output image. * Returns an empty map when canvas is unavailable (SSR / unit-test environments). */ export declare function rasterizeRedactedPages(source: ArrayBuffer, redactionsByPage: Map, password?: string): Promise>; /** * Export a PDF with redactions truly removed. * * Pages containing redactions are rasterized to PNG via PDF.js and rebuilt as * image-only PDF pages — the original text content stream is discarded so the * redacted content cannot be extracted by copy/paste, pdftotext, or any other * tool. Non-redacted pages are copied verbatim, preserving text and vector * fidelity. * * Falls back to visual-only black rectangles when canvas rendering is * unavailable (SSR / test environments). */ export declare function exportRedactedPdfBytes(source: ArrayBuffer, redactions: readonly PdfRedaction[], options?: { password?: string; }): Promise; export declare function downloadRedactedPdf(bytes: Uint8Array, fileName: string): void; export {}; //# sourceMappingURL=pdf-redaction-export.d.ts.map