import { Account, Namespace } from '../../../../internal'; import { StakingCommission, StakingLedger, StakingNomination, StakingPayee, SubCallback, UnsubCallback } from '../../../../types'; /** * Handles Account staking related functionality */ export declare class Staking extends Namespace { /** * Fetch the ledger information for a stash account * * @returns The staking ledger information or null if the account is not a controller */ getLedger(): Promise; /** * Fetch the payee that will receive a stash account's rewards * * @returns The payee account or null if the account is not a stash */ getPayee(): Promise; /** * Fetch the payee that will receive a stash account's rewards * * @param callback - Callback function that can be used to listen for changes to the staking payee * * @note can be subscribed to, if connected to node using a web socket * @returns The payee account or null if the account is not a stash */ getPayee(callback: SubCallback): Promise; /** * Fetch this account's current nominations * * @returns The nomination details or null if the account is not a controller */ getNomination(): Promise; /** * Fetch this account's current nominations * * @param callback - Callback function that can be used to listen for changes to the nominations * * @note can be subscribed to, if connected to node using a web socket * @returns The nomination details or null if the account is not a controller */ getNomination(callback: SubCallback): Promise; /** * Fetch the controller associated to this account if there is one * * @note a stash can be its own controller * @returns The controller account or null if the account is not a stash */ getController(): Promise; /** * Fetch the controller associated to this account if there is one * * @param callback - Callback function that can be used to listen for changes to the controller * * @note can be subscribed to, if connected to node using a web socket * @note a stash can be its own controller * @returns The controller account or null if the account is not a stash */ getController(callback: SubCallback): Promise; /** * Fetch the commission settings for this validator account * * @returns The commission details or null if the account is not seeking nominations as a validator */ getCommission(): Promise; } //# sourceMappingURL=index.d.ts.map