import algosdk from 'algosdk'; import { SendTransactionResult } from '../types/transaction'; import { AlgoRekeyParams, EnsureFundedParams, EnsureFundedReturnType, TransferAssetParams } from '../types/transfer'; import Algodv2 = algosdk.Algodv2; import Kmd = algosdk.Kmd; /** * @deprecated Use `algorand.account.ensureFunded()` / `algorand.account.ensureFundedFromEnvironment()` * / `algorand.account.ensureFundedFromTestNetDispenserApi()` instead * * Funds a given account using a funding source such that it has a certain amount of Algo free to spend (accounting for Algo locked in minimum balance requirement). * * https://dev.algorand.co/concepts/smart-contracts/costs-constraints#mbr * * @param funding The funding configuration of type `EnsureFundedParams`, including the account to fund, minimum spending balance, and optional parameters. If you set `useDispenserApi` to true, you must also set `ALGOKIT_DISPENSER_ACCESS_TOKEN` in your environment variables. * @param algod An instance of the Algodv2 client. * @param kmd An optional instance of the Kmd client. * @returns * - `EnsureFundedReturnType` if funds were transferred. * - `undefined` if no funds were needed. */ export declare function ensureFunded(funding: T, algod: Algodv2, kmd?: Kmd): Promise; /** * @deprecated Use `algorand.send.assetTransfer()` / `algorand.createTransaction.assetTransfer()` instead * * Transfer asset between two accounts. * @param transfer The transfer definition * @param algod An algod client * @returns The transaction object and optionally the confirmation if it was sent to the chain (`skipSending` is `false` or unset) * * @example Usage example * ```typescript * await algokit.transferAsset({ from, to, assetId, amount }, algod) * ``` */ export declare function transferAsset(transfer: TransferAssetParams, algod: Algodv2): Promise; /** * @deprecated Use `algorand.account.rekeyAccount()` instead * * Rekey an account to a new address. * * **Note:** Please be careful with this function and be sure to read the [official rekey guidance](https://dev.algorand.co/concepts/accounts/rekeying). * * @param rekey The rekey definition * @param algod An algod client * @returns The transaction object and optionally the confirmation if it was sent to the chain (`skipSending` is `false` or unset) * * @example Usage example * ```typescript * await algokit.rekeyAccount({ from, rekeyTo }, algod) * ``` */ export declare function rekeyAccount(rekey: AlgoRekeyParams, algod: Algodv2): Promise;