/** * 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 ENABLE_CPI_GUARD_DISCRIMINATOR = 34; export declare function getEnableCpiGuardDiscriminatorBytes(): ReadonlyUint8Array; export declare const ENABLE_CPI_GUARD_CPI_GUARD_DISCRIMINATOR = 0; export declare function getEnableCpiGuardCpiGuardDiscriminatorBytes(): ReadonlyUint8Array; export type EnableCpiGuardInstruction = 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 EnableCpiGuardInstructionData = { discriminator: number; cpiGuardDiscriminator: number; }; export type EnableCpiGuardInstructionDataArgs = {}; export declare function getEnableCpiGuardInstructionDataEncoder(): FixedSizeEncoder; export declare function getEnableCpiGuardInstructionDataDecoder(): FixedSizeDecoder; export declare function getEnableCpiGuardInstructionDataCodec(): FixedSizeCodec; export type EnableCpiGuardInput = { /** The token account to update. */ token: Address; /** The account's owner/delegate or its multisignature account. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getEnableCpiGuardInstruction(input: EnableCpiGuardInput, config?: { programAddress?: TProgramAddress; }): EnableCpiGuardInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedEnableCpiGuardInstruction = { programAddress: Address; accounts: { /** The token account to update. */ token: TAccountMetas[0]; /** The account's owner/delegate or its multisignature account. */ owner: TAccountMetas[1]; }; data: EnableCpiGuardInstructionData; }; export declare function parseEnableCpiGuardInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedEnableCpiGuardInstruction; //# sourceMappingURL=enableCpiGuard.d.ts.map