import * as web3 from "@solana/web3.js"; import { Honeycomb, Operation } from "@honeycomb-protocol/hive-control"; import { HplCurrency } from "../HplCurrency"; /** * Represents the arguments for creating a "Fund Account" operation. * @category Types */ type CreateFundAccountOperationArgs = { amount: number; currency: HplCurrency; receiverWallet: web3.PublicKey; programId?: web3.PublicKey; }; /** * Creates a "Fund Account" operation to add funds to the specified holder account for the given currency. * If the receiver wallet does not have a holder account for the currency, a new holder account will be created. * @category Operation Builders * @param honeycomb The Honeycomb instance. * @param args The arguments for creating the "Fund Account" operation. * @returns An object containing the "Fund Account" operation and the holder account address. * @example * const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance * const currency = ...; // HplCurrency instance * const receiverWallet = ...; // Receiver's wallet public key * const amount = 100; // Amount to fund * * // Create a "Fund Account" operation for the receiver and currency * const operationArgs: CreateFundAccountOperationArgs = { * currency, * receiverWallet, * amount, * }; * const { operation } = await createFundAccountOperation(honeycomb, operationArgs); * operation.send(); */ export declare function createFundAccountOperation(honeycomb: Honeycomb, args: CreateFundAccountOperationArgs): Promise<{ operation: Operation; holderAccount: web3.PublicKey; }>; export {};