/** * 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_CHECKED_DISCRIMINATOR = 13; export declare function getApproveCheckedDiscriminatorBytes(): ReadonlyUint8Array; export type ApproveCheckedInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountDelegate extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSource extends string ? WritableAccount : TAccountSource, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountDelegate extends string ? ReadonlyAccount : TAccountDelegate, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, ...TRemainingAccounts ]>; export type ApproveCheckedInstructionData = { discriminator: number; /** The amount of tokens the delegate is approved for. */ amount: bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export type ApproveCheckedInstructionDataArgs = { /** The amount of tokens the delegate is approved for. */ amount: number | bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export declare function getApproveCheckedInstructionDataEncoder(): FixedSizeEncoder; export declare function getApproveCheckedInstructionDataDecoder(): FixedSizeDecoder; export declare function getApproveCheckedInstructionDataCodec(): FixedSizeCodec; export type ApproveCheckedInput = { /** The source account. */ source: Address; /** The token mint. */ mint: Address; /** The delegate. */ delegate: Address; /** The source account owner or its multisignature account. */ owner: Address | TransactionSigner; amount: ApproveCheckedInstructionDataArgs['amount']; decimals: ApproveCheckedInstructionDataArgs['decimals']; multiSigners?: Array; }; export declare function getApproveCheckedInstruction(input: ApproveCheckedInput, config?: { programAddress?: TProgramAddress; }): ApproveCheckedInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedApproveCheckedInstruction = { programAddress: Address; accounts: { /** The source account. */ source: TAccountMetas[0]; /** The token mint. */ mint: TAccountMetas[1]; /** The delegate. */ delegate: TAccountMetas[2]; /** The source account owner or its multisignature account. */ owner: TAccountMetas[3]; }; data: ApproveCheckedInstructionData; }; export declare function parseApproveCheckedInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedApproveCheckedInstruction; //# sourceMappingURL=approveChecked.d.ts.map