// import-progression-trees.ts — engine ProgressionTreeDefinition[] → schema format
export function importProgressionTrees(engineTrees) {
    const trees = engineTrees.map((tree) => ({
        id: tree.id,
        name: tree.name,
        currency: tree.currency,
        nodes: tree.nodes.map((node) => ({
            id: node.id,
            name: node.name,
            description: node.description,
            cost: node.cost,
            requires: node.requires ? [...node.requires] : [],
            effects: node.effects.map((e) => ({ type: e.type, target: e.target, params: { ...e.params } })),
        })),
    }));
    // Progression trees are lossless — no fidelity entries
    return { trees, fidelity: [] };
}
//# sourceMappingURL=import-progression-trees.js.map