import { SPL_STAKE_POOL_PROGRAM_ADDRESS } from "../programs/splStakePool.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; //#region src/generated/instructions/setStaker.d.ts export declare const SET_STAKER_DISCRIMINATOR = 13; export declare function getSetStakerDiscriminatorBytes(): ReadonlyUint8Array; export type SetStakerInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountNewStakerPubkey extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? WritableAccount : TAccountStakePool, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountNewStakerPubkey extends string ? ReadonlyAccount : TAccountNewStakerPubkey, ...TRemainingAccounts]>; export type SetStakerInstructionData = { discriminator: number; }; export type SetStakerInstructionDataArgs = {}; export declare function getSetStakerInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetStakerInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetStakerInstructionDataCodec(): FixedSizeCodec; export type SetStakerInput = { /** Stake pool */ stakePool: Address; /** Manager or current staker */ authority: TransactionSigner; /** New staker pubkey */ newStakerPubkey: Address; }; /** * (Manager or staker only) Update staker * 0. `[w]` Stake pool * 1. `[s]` Manager or current staker * 2. '[]` New staker pubkey */ export declare function getSetStakerInstruction(input: SetStakerInput, config?: { programAddress?: TProgramAddress; }): SetStakerInstruction; export type ParsedSetStakerInstruction = { programAddress: Address; accounts: { /** Stake pool */ stakePool: TAccountMetas[0]; /** Manager or current staker */ authority: TAccountMetas[1]; /** New staker pubkey */ newStakerPubkey: TAccountMetas[2]; }; data: SetStakerInstructionData; }; export declare function parseSetStakerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetStakerInstruction; //#endregion //# sourceMappingURL=setStaker.d.ts.map