import { ExternalActionId as e } from "../../types/external-action.types.mjs";
import { CIRCOM_P as t } from "../../constants/protocol.constants.mjs";
import { ethers as n } from "ethers";
//#region libs/shared/common/src/functions/utils/external-action.utils.ts
var r = (e) => e === 0n ? 0n : BigInt(n.id(e)) % t, i = (t) => BigInt(t) === 0n ? e.Transact : Object.values(e).find((e) => BigInt(t) === r(e));
//#endregion
export { i as getExternalActionIdFromNumber, r as getExternalActionIdHash };
