/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const WITHDRAW_WITHHELD_TOKENS_FROM_ACCOUNTS_DISCRIMINATOR = 26; export declare function getWithdrawWithheldTokensFromAccountsDiscriminatorBytes(): ReadonlyUint8Array; export declare const WITHDRAW_WITHHELD_TOKENS_FROM_ACCOUNTS_TRANSFER_FEE_DISCRIMINATOR = 3; export declare function getWithdrawWithheldTokensFromAccountsTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type WithdrawWithheldTokensFromAccountsInstruction = string, TAccountFeeReceiver extends string | AccountMeta = string, TAccountWithdrawWithheldAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountFeeReceiver extends string ? WritableAccount : TAccountFeeReceiver, TAccountWithdrawWithheldAuthority extends string ? ReadonlyAccount : TAccountWithdrawWithheldAuthority, ...TRemainingAccounts ]>; export type WithdrawWithheldTokensFromAccountsInstructionData = { discriminator: number; transferFeeDiscriminator: number; /** Number of token accounts harvested. */ numTokenAccounts: number; }; export type WithdrawWithheldTokensFromAccountsInstructionDataArgs = { /** Number of token accounts harvested. */ numTokenAccounts: number; }; export declare function getWithdrawWithheldTokensFromAccountsInstructionDataEncoder(): FixedSizeEncoder; export declare function getWithdrawWithheldTokensFromAccountsInstructionDataDecoder(): FixedSizeDecoder; export declare function getWithdrawWithheldTokensFromAccountsInstructionDataCodec(): FixedSizeCodec; export type WithdrawWithheldTokensFromAccountsInput = { /** The token mint. Must include the `TransferFeeConfig` extension. */ mint: Address; /** * The fee receiver account. Must include the `TransferFeeAmount` * extension associated with the provided mint. */ feeReceiver: Address; /** The mint's `withdraw_withheld_authority` or its multisignature account. */ withdrawWithheldAuthority: Address | TransactionSigner; numTokenAccounts: WithdrawWithheldTokensFromAccountsInstructionDataArgs['numTokenAccounts']; multiSigners?: Array; sources: Array
; }; export declare function getWithdrawWithheldTokensFromAccountsInstruction(input: WithdrawWithheldTokensFromAccountsInput, config?: { programAddress?: TProgramAddress; }): WithdrawWithheldTokensFromAccountsInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountWithdrawWithheldAuthority>; export type ParsedWithdrawWithheldTokensFromAccountsInstruction = { programAddress: Address; accounts: { /** The token mint. Must include the `TransferFeeConfig` extension. */ mint: TAccountMetas[0]; /** * The fee receiver account. Must include the `TransferFeeAmount` * extension associated with the provided mint. */ feeReceiver: TAccountMetas[1]; /** The mint's `withdraw_withheld_authority` or its multisignature account. */ withdrawWithheldAuthority: TAccountMetas[2]; }; data: WithdrawWithheldTokensFromAccountsInstructionData; }; export declare function parseWithdrawWithheldTokensFromAccountsInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWithdrawWithheldTokensFromAccountsInstruction; //# sourceMappingURL=withdrawWithheldTokensFromAccounts.d.ts.map