import { Options, Addresses } from '../../types'; export default class Personal { options: Options; privateKey: string; provider: string; protocol: string; addresses: Addresses; constructor(provider: string, privateKey: string, options: Options, addresses: Addresses, protocol: string); /** * Deposit in Flexible savings * @param depositAmount */ flexibleDeposit(depositAmount: string): Promise<{ status: boolean; data: any; }>; /** * Deposit in Fixed savings * @param depositAmount should be in BUSD eg 100 * @param lockPeriod is the lock period in seconds */ fixedDeposit(depositAmount: string, lockPeriod: number): Promise<{ status: boolean; data: any; }>; /** * Get fixed deposit information for a particular address */ fixedInfo(): Promise; /** * Get flexible deposit information for a particular address */ flexibleInfo(): Promise<{ balance: any; derivativeWithdrawn: any; shareBalance: any; } | { balance?: undefined; derivativeWithdrawn?: undefined; shareBalance?: undefined; }>; /** * withdraw from fixed deposit */ withdrawFixed(recordId: number): Promise<{ status: boolean; data: any; }>; /** * withdraw from flexible deposit */ /** * * @param amount should be the share balance amount that is to be withdrawn */ withdrawFlexible(amount: string): Promise<{ /** * Deposit in Flexible savings * @param depositAmount */ status: boolean; data: any; }>; }