/** * 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 APPROVE_CONFIDENTIAL_TRANSFER_ACCOUNT_DISCRIMINATOR = 27; export declare function getApproveConfidentialTransferAccountDiscriminatorBytes(): ReadonlyUint8Array; export declare const APPROVE_CONFIDENTIAL_TRANSFER_ACCOUNT_CONFIDENTIAL_TRANSFER_DISCRIMINATOR = 3; export declare function getApproveConfidentialTransferAccountConfidentialTransferDiscriminatorBytes(): ReadonlyUint8Array; export type ApproveConfidentialTransferAccountInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountToken extends string ? WritableAccount : TAccountToken, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, ...TRemainingAccounts ]>; export type ApproveConfidentialTransferAccountInstructionData = { discriminator: number; confidentialTransferDiscriminator: number; }; export type ApproveConfidentialTransferAccountInstructionDataArgs = {}; export declare function getApproveConfidentialTransferAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getApproveConfidentialTransferAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getApproveConfidentialTransferAccountInstructionDataCodec(): FixedSizeCodec; export type ApproveConfidentialTransferAccountInput = { /** The SPL Token account to approve. */ token: Address; /** The corresponding SPL Token mint. */ mint: Address; /** Confidential transfer mint authority. */ authority: TransactionSigner; }; export declare function getApproveConfidentialTransferAccountInstruction(input: ApproveConfidentialTransferAccountInput, config?: { programAddress?: TProgramAddress; }): ApproveConfidentialTransferAccountInstruction; export type ParsedApproveConfidentialTransferAccountInstruction = { programAddress: Address; accounts: { /** The SPL Token account to approve. */ token: TAccountMetas[0]; /** The corresponding SPL Token mint. */ mint: TAccountMetas[1]; /** Confidential transfer mint authority. */ authority: TAccountMetas[2]; }; data: ApproveConfidentialTransferAccountInstructionData; }; export declare function parseApproveConfidentialTransferAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedApproveConfidentialTransferAccountInstruction; //# sourceMappingURL=approveConfidentialTransferAccount.d.ts.map