/** * 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 BURN_CHECKED_DISCRIMINATOR = 15; export declare function getBurnCheckedDiscriminatorBytes(): ReadonlyUint8Array; export type BurnCheckedInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount : TAccountAccount, TAccountMint extends string ? WritableAccount : TAccountMint, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type BurnCheckedInstructionData = { discriminator: number; /** The amount of tokens to burn. */ amount: bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export type BurnCheckedInstructionDataArgs = { /** The amount of tokens to burn. */ amount: number | bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export declare function getBurnCheckedInstructionDataEncoder(): FixedSizeEncoder; export declare function getBurnCheckedInstructionDataDecoder(): FixedSizeDecoder; export declare function getBurnCheckedInstructionDataCodec(): FixedSizeCodec; export type BurnCheckedInput = { /** The account to burn from. */ account: Address; /** The token mint. */ mint: Address; /** The account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; amount: BurnCheckedInstructionDataArgs['amount']; decimals: BurnCheckedInstructionDataArgs['decimals']; multiSigners?: Array; }; export declare function getBurnCheckedInstruction(input: BurnCheckedInput, config?: { programAddress?: TProgramAddress; }): BurnCheckedInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedBurnCheckedInstruction = { programAddress: Address; accounts: { /** The account to burn from. */ account: TAccountMetas[0]; /** The token mint. */ mint: TAccountMetas[1]; /** The account's owner/delegate or its multisignature account. */ authority: TAccountMetas[2]; }; data: BurnCheckedInstructionData; }; export declare function parseBurnCheckedInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedBurnCheckedInstruction; //# sourceMappingURL=burnChecked.d.ts.map