export var SupportedChains;
(function (SupportedChains) {
    SupportedChains["polkadot"] = "polkadot";
    SupportedChains["kusama"] = "kusama";
    SupportedChains["rococo"] = "rococo";
    SupportedChains["westend"] = "westend";
})(SupportedChains || (SupportedChains = {}));
export async function getSpec(chain) {
    const specRaw = (await import("./generated/" + chain + ".js"));
    return typeof specRaw === "string"
        ? specRaw
        : specRaw.default;
}
//# sourceMappingURL=index.js.map