import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
import { ENCLAVE_URL as t } from "../functions/snarkjs/constant.mjs";
import { Mutex as n } from "async-mutex";
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await e.post(`${t}/decrypt-utxos`, {
	chainId: n,
	input: a,
	key: i
})), a = async (n, r, i, a) => await e.post(`${t}/store-utxo`, {
	recipientEthAddress: n,
	encryptedUtxo: r,
	key: i,
	chainId: a
}), o = async (n, r, i, a, o, s) => await e.post(`${t}/get-utxos`, {
	ethAddress: n,
	encryptedSignature: r,
	key: i,
	chainId: a,
	isSolanaLedger: o,
	txMessageForSolanaLedger: s
});
//#endregion
export { i as decryptUtxoEnclaveCall, o as getUtxosEnclaveCall, a as storeUtxoEnclaveCall };
