import { AccountType } from "../types/accountType.js"; import { ValidatorStakeInfo, ValidatorStakeInfoArgs } from "../types/validatorStakeInfo.js"; import "../types/index.js"; import { Account, Address, Codec, Decoder, EncodedAccount, Encoder, FetchAccountConfig, FetchAccountsConfig, MaybeAccount, MaybeEncodedAccount, ReadonlyUint8Array, fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit"; //#region src/generated/accounts/validatorList.d.ts export declare const VALIDATOR_LIST_ACCOUNT_TYPE: AccountType; export declare function getValidatorListAccountTypeBytes(): ReadonlyUint8Array; /** Storage list for all validator stake accounts in the pool. */ export type ValidatorList = { /** Account type, must be `ValidatorList` currently */ accountType: AccountType; /** Maximum allowable number of validators */ maxValidators: number; /** List of stake info for each validator in the pool */ validators: Array; }; export type ValidatorListArgs = { /** Maximum allowable number of validators */ maxValidators: number; /** List of stake info for each validator in the pool */ validators: Array; }; /** Gets the encoder for {@link ValidatorListArgs} account data. */ export declare function getValidatorListEncoder(): Encoder; /** Gets the decoder for {@link ValidatorList} account data. */ export declare function getValidatorListDecoder(): Decoder; /** Gets the codec for {@link ValidatorList} account data. */ export declare function getValidatorListCodec(): Codec; export declare function decodeValidatorList(encodedAccount: EncodedAccount): Account; export declare function decodeValidatorList(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchValidatorList(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeValidatorList(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllValidatorList(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeValidatorList(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; //#endregion //# sourceMappingURL=validatorList.d.ts.map