import { PublicKey } from "@solana/web3.js"; import type { InputUTXO, SerializedUTXO } from "../notes/model.js"; import type { ExtData, TransactionCircuitInputs } from "./types.js"; /** * Compute the external data hash. * Matches on-chain computation: * hash1 = Poseidon(recipient, relayer) * hash2 = Poseidon(fee, refund) * extDataHash = Poseidon(hash1, hash2, claimant) */ export declare function computeExtDataHash(extData: ExtData): Uint8Array; /** * Convert i64 to field element (handles negative via modular arithmetic). * For negative values, we add the field modulus to get the equivalent positive representation. */ export declare function i64ToField(value: bigint): bigint; /** * Prepare transaction circuit inputs from high-level parameters. * This converts the SDK types into the format expected by the circuit. */ export declare function prepareTransactionInputs(params: { inputUTXOs: [InputUTXO, InputUTXO]; outputUTXOs: [SerializedUTXO, SerializedUTXO]; root: Uint8Array; publicAmount: bigint; extData: ExtData; mintAddress: PublicKey; }): TransactionCircuitInputs;