import { MoveStructId } from "@aptos-labs/ts-sdk"; import { AgentRuntime } from "../../agent"; /** * Lend APT, tokens or fungible asset to a position * @param agent MoveAgentKit instance * @param amount Amount to mint * @param mint The Move struct ID of the token to lend * @param positionId The position ID to lend to * @param newPosition Whether to create a new position or not * @param fungibleAssetAddress The address of the fungible asset if the token is fungible (optional) * @returns Transaction signature and position ID * @example * ```ts * const transactionHash = await lendToken(agent, amount, APTOS_COIN, positionId, false); // For APT * const otherTransactionHash = await lendToken(agent, amount, OTHER_TOKEN, positionId, false); // For another token * const fungibleAssetTransactionHash = await lendToken(agent, amount, APTOS_COIN, positionId, false, fungibleAssetAddress); // For fungible asset */ export declare function lendToken(agent: AgentRuntime, amount: number, mint: MoveStructId, positionId: string, newPosition: boolean, fungibleAsset: boolean): Promise<{ hash: string; positionId: string; }>;