import { createApi as createXrpApi } from "@ledgerhq/coin-xrp/api/index";
import { getCurrencyConfiguration } from "../../../config";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
import { getNetworkAlpacaApi } from "./network/network-alpaca";
export function getAlpacaApi(network, kind) {
    if (kind === "local") {
        switch (network) {
            case "ripple":
            case "xrp":
                return createXrpApi(getCurrencyConfiguration(getCryptoCurrencyById("ripple")));
            // as unknown as Api<any>; // FIXME: createXrpApi returns a strongly typed Api<XrpSender>, fix Api<any> to allow it
        }
    }
    return getNetworkAlpacaApi(network);
}
//# sourceMappingURL=index.js.map