import { Context } from '../../internal'; import { BondPolyxParams, NoArgsProcedureMethod, NominateValidatorsParams, PaginationOptions, ProcedureMethod, ResultSet, SetStakingPayeeParams, StakingCommission, StakingEraInfo, SubCallback, UnsubCallback, UpdatePolyxBondParams } from '../../types'; /** * Handles Staking related functionality */ export declare class Staking { private readonly context; /** * @hidden */ constructor(context: Context); /** * Bond POLYX for staking * * @note the signing account cannot be a stash */ bond: ProcedureMethod; /** * Bond extra POLYX for staking * * @note this transaction must be signed by a stash */ bondExtra: ProcedureMethod; /** * Unbond POLYX for staking. The unbonded amount can be withdrawn after the lockup period */ unbond: ProcedureMethod; /** * Withdraw unbonded POLYX to free it for the stash account * * @note this transaction must be signed by a controller */ withdraw: NoArgsProcedureMethod; /** * Nominate validators for the bonded POLYX * * @note this transaction must be signed by a controller */ nominate: ProcedureMethod; /** * Allow for a stash account to update its controller so the stash becomes its own controller * * @note the transaction must be signed by a stash account */ setController: NoArgsProcedureMethod; /** * Allow for a stash account to update where it's staking rewards are deposited * * @note the transaction must be signed by a controller account */ setPayee: ProcedureMethod; /** * Return information about nomination targets * * @note supports pagination */ getValidators(paginationOpts?: PaginationOptions): Promise>; /** * Retrieve the current staking era information * * @returns Promise that resolves to the current era information */ eraInfo(): Promise; /** * Retrieve the current staking era information (with subscription support) * * @param callback - Callback function that receives era information updates * * @returns Promise that resolves to an unsubscribe function * * @note can be subscribed to, if connected to node using a web socket */ eraInfo(callback: SubCallback): Promise; } //# sourceMappingURL=Staking.d.ts.map