/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { YVAULTS_PROGRAM_ADDRESS } from "../programs"; export declare const CLOSE_PROGRAM_ACCOUNT_DISCRIMINATOR: Uint8Array; export declare function getCloseProgramAccountDiscriminatorBytes(): ReadonlyUint8Array; export type CloseProgramAccountInstruction = string, TAccountProgram extends string | AccountMeta = string, TAccountProgramData extends string | AccountMeta = string, TAccountClosingAccount extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, TAccountProgramData extends string ? ReadonlyAccount : TAccountProgramData, TAccountClosingAccount extends string ? WritableAccount : TAccountClosingAccount, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CloseProgramAccountInstructionData = { discriminator: ReadonlyUint8Array; }; export type CloseProgramAccountInstructionDataArgs = {}; export declare function getCloseProgramAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseProgramAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseProgramAccountInstructionDataCodec(): FixedSizeCodec; export type CloseProgramAccountInput = { adminAuthority: TransactionSigner; program: Address; programData: Address; closingAccount: Address; systemProgram?: Address; }; export declare function getCloseProgramAccountInstruction(input: CloseProgramAccountInput, config?: { programAddress?: TProgramAddress; }): CloseProgramAccountInstruction; export type ParsedCloseProgramAccountInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; program: TAccountMetas[1]; programData: TAccountMetas[2]; closingAccount: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: CloseProgramAccountInstructionData; }; export declare function parseCloseProgramAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseProgramAccountInstruction; //# sourceMappingURL=closeProgramAccount.d.ts.map