/** * 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_CPI_GUARD_DISCRIMINATOR = 34; export declare function getDisableCpiGuardDiscriminatorBytes(): ReadonlyUint8Array; export declare const DISABLE_CPI_GUARD_CPI_GUARD_DISCRIMINATOR = 1; export declare function getDisableCpiGuardCpiGuardDiscriminatorBytes(): ReadonlyUint8Array; export type DisableCpiGuardInstruction = 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 DisableCpiGuardInstructionData = { discriminator: number; cpiGuardDiscriminator: number; }; export type DisableCpiGuardInstructionDataArgs = {}; export declare function getDisableCpiGuardInstructionDataEncoder(): FixedSizeEncoder; export declare function getDisableCpiGuardInstructionDataDecoder(): FixedSizeDecoder; export declare function getDisableCpiGuardInstructionDataCodec(): FixedSizeCodec; export type DisableCpiGuardInput = { /** The token account to update. */ token: Address; /** The account's owner/delegate or its multisignature account. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getDisableCpiGuardInstruction(input: DisableCpiGuardInput, config?: { programAddress?: TProgramAddress; }): DisableCpiGuardInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedDisableCpiGuardInstruction = { programAddress: Address; accounts: { /** The token account to update. */ token: TAccountMetas[0]; /** The account's owner/delegate or its multisignature account. */ owner: TAccountMetas[1]; }; data: DisableCpiGuardInstructionData; }; export declare function parseDisableCpiGuardInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDisableCpiGuardInstruction; //# sourceMappingURL=disableCpiGuard.d.ts.map