import { Addresses, Options, EsusuCycleData } from '../../types'; export default class Esusu { options: Options; privateKey: string; provider: string; protocol: string; addresses: Addresses; constructor(provider: string, privateKey: string, options: Options, addresses: Addresses, protocol: string); /** * Create an Esusu cycle * @param args */ create(args: EsusuCycleData): Promise<{}>; /** * Retrieve the number of cycles the account with the initialized * private key has created */ getCreatedCyclesCount(): Promise; /** * Get cycle id * @param positionOfCycle * get the id of an esusu cycle by passing the position of the cycle in * the list of cycles created by a particular client address */ getCycleIdFromCreatedCyclesList(positionOfCycle: number): Promise; /** * Get Esusu cycle information * @param esusuId */ info(esusuId: number): Promise; /** * Join an Esusu cycle * @param cycleId */ join(cycleId: number): Promise<{ status: boolean; /** * Retrieve the number of cycles the account with the initialized * private key has created */ data: any; }>; start(cycleId: number): Promise<{ status: boolean; msg: string; data: any; }>; withdrawInterest(cycleId: number): Promise<{ status: boolean; data: any; }>; withdrawCapital(cycleId: number): Promise<{ status: boolean; data: any; }>; isMemberOfCycle(cycleId: number): Promise; roiAndCapital(cycleId: number): Promise<{ capital: any; interest: any; }>; createGroup(name: string, symbol: string): Promise<{ status: boolean; msg: string; data: any; }>; getGroups(): Promise; contributionsCount(): Promise; contrubution(): Promise; cyclesInGroup(groupId: number): Promise; }