import { Module } from "@nestjs/common";
import { BillingModule } from "../billing/billing.module";
import { OcrModule } from "../ocr/ocr.module";
import { StatementsController } from "./statements.controller";
import { StatementsService } from "./statements.service";
import { StatementMatcherService } from "./statement-matcher.service";

/**
 * The concrete OCR engine is bound in OcrModule (see apps/api/src/ocr/) —
 * everything downstream depends on the OcrProvider interface, so swapping
 * Tesseract for a managed extraction API is a one-line change there.
 */
@Module({
  imports: [BillingModule, OcrModule],
  controllers: [StatementsController],
  providers: [StatementsService, StatementMatcherService],
})
export class StatementsModule {}
