/**
 * Faction-specific configuration for the generic converter.
 *
 * Each faction provides a config that parameterizes the conversion pipeline.
 * Configs are stored in ./configs/ and imported by convert-faction.ts.
 */
/** Registry of all known faction configs, keyed by 40kdc faction ID. */
const registry = new Map();
export function registerFaction(config) {
    registry.set(config.factionId, config);
}
export function getFactionConfig(factionId) {
    const config = registry.get(factionId);
    if (!config) {
        const available = [...registry.keys()].join(", ");
        throw new Error(`Unknown faction "${factionId}". Available: ${available}`);
    }
    return config;
}
export function listFactions() {
    return [...registry.keys()].sort();
}
//# sourceMappingURL=faction-config.js.map