import { format as formatAdapterV1 } from "./adapter/v1.js";
import { format as formatHumanV1 } from "./human/v1.js";
import { format as formatMachineV1 } from "./machine/v1.js";
import { format as formatMachineV2 } from "./machine/v2.js";
const formatters = {
  human: {
    '1': formatHumanV1
  },
  machine: {
    '1': formatMachineV1,
    '2': formatMachineV2
  },
  adapter: {
    '1': formatAdapterV1
  }
};
export function getFormatter(audience, version) {
  const versions = formatters[audience];
  if (!versions) {
    throw new Error('Unknown audience');
  }
  const formatter = versions[version];
  if (!formatter) {
    throw new Error('Unknown version');
  }
  return formatter;
}
//# sourceMappingURL=index.js.map