import type { DocumentBuilder } from './document-builder.ts'; /** * Options for embedding a file in the PDF document. */ export type EmbeddedFile = { /** The file content as a Uint8Array. */ content: Uint8Array; /** The file name to display for the embedded file. */ fileName: string; /** MIME type of the file (e.g., 'application/xml', 'text/plain'). */ mimeType?: string; /** Description of the embedded file. */ description?: string; /** Creation date of the original file. */ creationDate?: Date; /** Modification date of the original file. */ modDate?: Date; /** * The relationship of the embedded file to the document. Required for * PDF/A-3 compliance. See * https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf */ afRelationship?: 'Source' | 'Data' | 'Alternative' | 'Supplement' | 'EncryptedPayload' | 'FormData' | 'Schema' | 'Unspecified'; }; export declare function embedFile(file: EmbeddedFile, docBuilder: DocumentBuilder): void;