/**
 * Async CSV export (TLP-compatible API). Backend route not wired in Maestro —
 * callers should keep `enableExport` false unless you implement `/api/datatables/*`.
 */

export async function exportDataTable() {
  const err = new Error(
    "Export is not configured on this server. Ask your administrator to enable the datatables export API.",
  );
  err.code = "EXPORT_NOT_CONFIGURED";
  throw err;
}

/** @returns {Promise<{ status: string }>} */
export async function getDataTableExportStatus() {
  return { status: "failed" };
}
