/** * 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 FREEZE_ACCOUNT_DISCRIMINATOR = 10; export declare function getFreezeAccountDiscriminatorBytes(): ReadonlyUint8Array; export type FreezeAccountInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount : TAccountAccount, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, ...TRemainingAccounts ]>; export type FreezeAccountInstructionData = { discriminator: number; }; export type FreezeAccountInstructionDataArgs = {}; export declare function getFreezeAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getFreezeAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getFreezeAccountInstructionDataCodec(): FixedSizeCodec; export type FreezeAccountInput = { /** The account to freeze. */ account: Address; /** The token mint. */ mint: Address; /** The mint freeze authority or its multisignature account. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getFreezeAccountInstruction(input: FreezeAccountInput, config?: { programAddress?: TProgramAddress; }): FreezeAccountInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedFreezeAccountInstruction = { programAddress: Address; accounts: { /** The account to freeze. */ account: TAccountMetas[0]; /** The token mint. */ mint: TAccountMetas[1]; /** The mint freeze authority or its multisignature account. */ owner: TAccountMetas[2]; }; data: FreezeAccountInstructionData; }; export declare function parseFreezeAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedFreezeAccountInstruction; //# sourceMappingURL=freezeAccount.d.ts.map