import { SuiClientOption, EnvOption, LendingRewardSummary, LendingReward, HistoryClaimedReward, LendingClaimedReward, TransactionResult, AccountCapOption, AccountCap, MarketOption, MarketsOption, ServiceOption } from './types.js'; import { Transaction } from '@mysten/sui/transactions'; /** * Get user's available lending rewards * * This function retrieves all available rewards for a user from the lending protocol. * It uses devInspect to simulate the reward calculation and returns detailed * information about claimable rewards for each asset and reward type. * * @param address - User's wallet address or account cap * @param options - Optional client and environment configuration * @returns Array of lending rewards available for claiming */ export declare function getUserAvailableLendingRewards(address: string | AccountCap, options?: Partial): Promise; /** * Summarize lending rewards by asset and reward type * * This function aggregates rewards by asset ID and reward type, providing * a summary view of all available rewards for easier display and management. * * @param rewards - Array of lending rewards to summarize * @returns Array of summarized reward information grouped by asset and type */ export declare function summaryLendingRewards(rewards: LendingReward[]): LendingRewardSummary[]; /** * Get user's total claimed rewards in USD value * * Fetches the total amount of rewards that a user has claimed historically, * converted to USD value for easy comparison and display. * * @param address - User's wallet address or account cap * @returns Object containing total claimed rewards in USD */ export declare const getUserTotalClaimedReward: (address: string | AccountCap, options?: Partial) => Promise<{ USDValue: number; }>; /** * Get user's claimed reward history * * Retrieves a paginated list of all rewards that a user has claimed historically. * Useful for tracking reward history and generating reports. * * @param address - User's wallet address or account cap * @param options - Pagination options (page number and size) * @returns Object containing claimed reward history and pagination cursor */ export declare const getUserClaimedRewardHistory: (address: string | AccountCap, options?: Partial) => Promise<{ data: HistoryClaimedReward[]; cursor?: string; }>; /** * Claim lending rewards in the PTB (Programmable Transaction Block) * * This function adds operations to a transaction block to claim rewards from the lending protocol. * It supports different claiming methods including direct claiming, claiming with * account capabilities, and custom coin handling (transfer or deposit). * * @param tx - The transaction block to add reward claiming operations to * @param rewards - Array of rewards to claim * @param options - Optional configuration including account capabilities and custom coin handling * @param options.customCoinReceive.type - The type of custom coin handling, can be 'transfer', 'depositNAVI' or 'skip' * @param options.customCoinReceive.transfer - The address to transfer the reward to, only used when options.customCoinReceive.type is 'transfer' * @param options.customCoinReceive.depositNAVI.fallbackReceiveAddress - The address to transfer the reward to if the pool is full, only used when options.customCoinReceive.type is 'depositNAVI' * @returns Array of claimed reward coins and their identifiers * @throws Error if reward fund not found or invalid configuration */ export declare function claimLendingRewardsPTB(tx: Transaction, rewards: LendingReward[], options?: Partial): Promise; //# sourceMappingURL=reward.d.ts.map