/** * 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 PERMISSIONED_BURN_DISCRIMINATOR = 46; export declare function getPermissionedBurnDiscriminatorBytes(): ReadonlyUint8Array; export declare const PERMISSIONED_BURN_PERMISSIONED_BURN_DISCRIMINATOR = 1; export declare function getPermissionedBurnPermissionedBurnDiscriminatorBytes(): ReadonlyUint8Array; export type PermissionedBurnInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountPermissionedBurnAuthority 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, TAccountPermissionedBurnAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPermissionedBurnAuthority, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type PermissionedBurnInstructionData = { discriminator: number; permissionedBurnDiscriminator: number; /** The amount of tokens to burn. */ amount: bigint; }; export type PermissionedBurnInstructionDataArgs = { /** The amount of tokens to burn. */ amount: number | bigint; }; export declare function getPermissionedBurnInstructionDataEncoder(): FixedSizeEncoder; export declare function getPermissionedBurnInstructionDataDecoder(): FixedSizeDecoder; export declare function getPermissionedBurnInstructionDataCodec(): FixedSizeCodec; export type PermissionedBurnInput = { /** The source account to burn from. */ account: Address; /** The token mint. */ mint: Address; /** Authority configured on the mint that must sign any permissioned burn instruction. */ permissionedBurnAuthority: TransactionSigner; /** The account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; amount: PermissionedBurnInstructionDataArgs['amount']; multiSigners?: Array; }; export declare function getPermissionedBurnInstruction(input: PermissionedBurnInput, config?: { programAddress?: TProgramAddress; }): PermissionedBurnInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedPermissionedBurnInstruction = { programAddress: Address; accounts: { /** The source account to burn from. */ account: TAccountMetas[0]; /** The token mint. */ mint: TAccountMetas[1]; /** Authority configured on the mint that must sign any permissioned burn instruction. */ permissionedBurnAuthority: TAccountMetas[2]; /** The account's owner/delegate or its multisignature account. */ authority: TAccountMetas[3]; }; data: PermissionedBurnInstructionData; }; export declare function parsePermissionedBurnInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPermissionedBurnInstruction; //# sourceMappingURL=permissionedBurn.d.ts.map