import { Module } from "@nestjs/common";

import { InvoiceDocumentService } from "./invoice-document.service";
import { PdfRenderService } from "./pdf-render.service";

/**
 * Standalone document infrastructure — generic HTML→PDF plus the shared
 * invoice/receipt renderer. Has no domain dependencies, so any module (billing,
 * warehouses, …) can import it to print invoices without coupling to the
 * billing payment graph.
 */
@Module({
  providers: [PdfRenderService, InvoiceDocumentService],
  exports: [PdfRenderService, InvoiceDocumentService],
})
export class DocumentsModule {}
