import { Addresses, Options, CooperativeCycleData } from '../../types'; export default class Cooperative { options: Options; privateKey: string; provider: string; protocol: string; addresses: Addresses; constructor(provider: string, privateKey: string, options: Options, addresses: Addresses, protocol: string); /** * Create an cooperative cycle cycle * @param args */ create(args: CooperativeCycleData): Promise<{}>; /** * joins a cooperative cycle * @param args */ join(cycleId: number, numberOfStakes: number): Promise<{ status: boolean; data: any; }>; /** * gets a cooperative cycle information by id * @param args */ info(cycleId: number): Promise; /** * Check if the cycle memeber exist * @param cycleId */ doesCycleMemberExist(cycleId: number): Promise; /** * Check if the cycle memeber exist * @param cycleId */ start(cycleId: number): Promise<{ status: boolean; msg: string; data: any; }>; /** * withdraw from ongoing cycle * @param cycle id */ withdrawFromOngoingCycle(cycleId: number): Promise<{ status: boolean; data: any; }>; /** * withdraw from completed cycle * @param cycle id */ withdrawCapital(cycleId: number): Promise<{ status: boolean; data: any; }>; createGroup(name: string, symbol: string): Promise<{ status: boolean; msg: string; data: any; }>; groups(): Promise; contributions(): Promise; cyclesInGroup(groupId: string): Promise; }