import { PublicKey } from "@solana/web3.js"; /** * Parsed content of an on-chain StakeAccount * * Copied from https://github.com/solana-developers/solana-rpc-get-stake-activation/blob/main/web3js-1.0/src/stake.ts * */ export type StakeAccount = { discriminant: bigint; meta: { rentExemptReserve: bigint; authorized: { staker: PublicKey; withdrawer: PublicKey; }; lockup: { unixTimestamp: bigint; epoch: bigint; custodian: PublicKey; }; }; stake: { delegation: { voterPubkey: PublicKey; stake: bigint; activationEpoch: bigint; deactivationEpoch: bigint; }; creditsObserved: bigint; }; }; /** * Decode a StakeAccount from parsed account data. * * Copied from https://github.com/solana-developers/solana-rpc-get-stake-activation/blob/main/web3js-1.0/src/stake.ts * */ export declare const getStakeAccount: (data: Buffer) => StakeAccount; //# sourceMappingURL=index.d.ts.map