/** * 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_MINT_DISCRIMINATOR = 26; export declare function getWithdrawWithheldTokensFromMintDiscriminatorBytes(): ReadonlyUint8Array; export declare const WITHDRAW_WITHHELD_TOKENS_FROM_MINT_TRANSFER_FEE_DISCRIMINATOR = 2; export declare function getWithdrawWithheldTokensFromMintTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type WithdrawWithheldTokensFromMintInstruction = string, TAccountFeeReceiver extends string | AccountMeta = string, TAccountWithdrawWithheldAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountFeeReceiver extends string ? WritableAccount : TAccountFeeReceiver, TAccountWithdrawWithheldAuthority extends string ? ReadonlyAccount : TAccountWithdrawWithheldAuthority, ...TRemainingAccounts ]>; export type WithdrawWithheldTokensFromMintInstructionData = { discriminator: number; transferFeeDiscriminator: number; }; export type WithdrawWithheldTokensFromMintInstructionDataArgs = {}; export declare function getWithdrawWithheldTokensFromMintInstructionDataEncoder(): FixedSizeEncoder; export declare function getWithdrawWithheldTokensFromMintInstructionDataDecoder(): FixedSizeDecoder; export declare function getWithdrawWithheldTokensFromMintInstructionDataCodec(): FixedSizeCodec; export type WithdrawWithheldTokensFromMintInput = { /** 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; multiSigners?: Array; }; export declare function getWithdrawWithheldTokensFromMintInstruction(input: WithdrawWithheldTokensFromMintInput, config?: { programAddress?: TProgramAddress; }): WithdrawWithheldTokensFromMintInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountWithdrawWithheldAuthority>; export type ParsedWithdrawWithheldTokensFromMintInstruction = { 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: WithdrawWithheldTokensFromMintInstructionData; }; export declare function parseWithdrawWithheldTokensFromMintInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWithdrawWithheldTokensFromMintInstruction; //# sourceMappingURL=withdrawWithheldTokensFromMint.d.ts.map