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