import { MoveStructId } from "@aptos-labs/ts-sdk"; import { AgentRuntime } from "../../agent"; /** * Withdraw 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 withdraw * @param positionId The position ID to withdraw from * @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 withdrawToken(agent, amount, APTOS_COIN, positionId); // For APT * const otherTransactionHash = await withdrawToken(agent, amount, OTHER_TOKEN, positionId); // For another token * const fungibleAssetTransactionHash = await withdrawToken(agent, amount, APTOS_COIN, positionId, fungibleAssetAddress); // For fungible asset */ export declare function withdrawToken(agent: AgentRuntime, amount: number, mint: MoveStructId, positionId: string, fungibleAsset: boolean): Promise<{ hash: string; positionId: string; }>;