/** * 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 CLOSE_ACCOUNT_DISCRIMINATOR = 9; export declare function getCloseAccountDiscriminatorBytes(): ReadonlyUint8Array; export type CloseAccountInstruction = string, TAccountDestination extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount : TAccountAccount, TAccountDestination extends string ? WritableAccount : TAccountDestination, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, ...TRemainingAccounts ]>; export type CloseAccountInstructionData = { discriminator: number; }; export type CloseAccountInstructionDataArgs = {}; export declare function getCloseAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseAccountInstructionDataCodec(): FixedSizeCodec; export type CloseAccountInput = { /** The account to close. */ account: Address; /** The destination account. */ destination: Address; /** The account's owner or its multisignature account. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getCloseAccountInstruction(input: CloseAccountInput, config?: { programAddress?: TProgramAddress; }): CloseAccountInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedCloseAccountInstruction = { programAddress: Address; accounts: { /** The account to close. */ account: TAccountMetas[0]; /** The destination account. */ destination: TAccountMetas[1]; /** The account's owner or its multisignature account. */ owner: TAccountMetas[2]; }; data: CloseAccountInstructionData; }; export declare function parseCloseAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseAccountInstruction; //# sourceMappingURL=closeAccount.d.ts.map