/** * 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 DISABLE_MEMO_TRANSFERS_DISCRIMINATOR = 30; export declare function getDisableMemoTransfersDiscriminatorBytes(): ReadonlyUint8Array; export declare const DISABLE_MEMO_TRANSFERS_MEMO_TRANSFERS_DISCRIMINATOR = 1; export declare function getDisableMemoTransfersMemoTransfersDiscriminatorBytes(): ReadonlyUint8Array; export type DisableMemoTransfersInstruction = string, TAccountOwner extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountToken extends string ? WritableAccount : TAccountToken, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, ...TRemainingAccounts ]>; export type DisableMemoTransfersInstructionData = { discriminator: number; memoTransfersDiscriminator: number; }; export type DisableMemoTransfersInstructionDataArgs = {}; export declare function getDisableMemoTransfersInstructionDataEncoder(): FixedSizeEncoder; export declare function getDisableMemoTransfersInstructionDataDecoder(): FixedSizeDecoder; export declare function getDisableMemoTransfersInstructionDataCodec(): FixedSizeCodec; export type DisableMemoTransfersInput = { /** The token account to update. */ token: Address; /** The account's owner or its multisignature account. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getDisableMemoTransfersInstruction(input: DisableMemoTransfersInput, config?: { programAddress?: TProgramAddress; }): DisableMemoTransfersInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedDisableMemoTransfersInstruction = { programAddress: Address; accounts: { /** The token account to update. */ token: TAccountMetas[0]; /** The account's owner or its multisignature account. */ owner: TAccountMetas[1]; }; data: DisableMemoTransfersInstructionData; }; export declare function parseDisableMemoTransfersInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDisableMemoTransfersInstruction; //# sourceMappingURL=disableMemoTransfers.d.ts.map