/**
 * copilot-export module — public entrypoint (ADR 019).
 *
 * Owner: SupplierPulse / Copilot-Exporte (Demo-067 C/E, KAR-982/KAR-984)
 *
 * DOCX/XLSX/Markdown exports (Fabrikanalyse / QAF-Vergleich / Wertstrom /
 * Gesamtprojekt) meant for a consultant to load into an external LLM tool
 * and keep working with. Every export starts with a shared AI-instruction
 * block (what the document is, how to work with it, an LSC/QAF/VSM/FA
 * glossary) and, for demo projects, a fictional-data disclaimer. Markdown
 * (Demo-067 E, KAR-984) is a second format option for the same four
 * exports — same content as the DOCX builders, geared at the "paste into an
 * external AI chat" workflow (no Office viewer needed).
 *
 * This module is pure: every builder is a function of its inputs, no
 * Supabase/DB/network access (ADR 019 golden-path discipline, same as
 * lib/qaf-value-stream). Callers (the four `'use server'` action files
 * under app/) load the DB rows, call these builders, then base64-encode the
 * returned Buffer/ArrayBuffer/string for the "Muster B" server-action
 * download (see app/qaf-differences/actions.ts's exportQafComparisonXlsx
 * for the reference shape).
 *
 * Anything not re-exported from this file is internal and may change without
 * notice. Cross-module access goes through this entrypoint only — no deep
 * imports into this module's internal/.
 */

export type {
  AiInstructionBlockContent,
  AiInstructionBlockInput,
  CopilotExportDownload,
  GlossaryEntry,
} from './internal/types'

export { copilotExportsGate, fictionalDataDisclaimer } from './internal/ai-instruction-block'

export { sanitizeFilenamePart, formatNumberDe } from './internal/docx-shared'

export { buildFabrikanalyseCopilotDocx } from './internal/assessment-docx'
export type { AssessmentDocxInput } from './internal/assessment-docx'
export { buildFabrikanalyseCopilotMd } from './internal/assessment-md'

export { buildQafComparisonCopilotDocx } from './internal/qaf-docx'
export type { QafComparisonDocxInput } from './internal/qaf-docx'
export { buildQafComparisonCopilotMd } from './internal/qaf-md'

export { buildWertstromCopilotDocx } from './internal/wertstrom-docx'
export type { WertstromDocxInput } from './internal/wertstrom-docx'
export { buildWertstromCopilotMd } from './internal/wertstrom-md'

export { buildProjectCopilotDocx } from './internal/project-docx'
export { buildProjectCopilotXlsx } from './internal/project-xlsx'
export { buildProjectCopilotMd } from './internal/project-md'
export type {
  ProjectExportAgenda,
  ProjectExportAgendaDay,
  ProjectExportAgendaItem,
  ProjectExportInput,
  ProjectExportModuleSummary,
  ProjectExportStammdaten,
  ProjectExportWorkshopAction,
} from './internal/project-types'
