/** * 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 { LOADER_V3_PROGRAM_ADDRESS } from '../programs'; export declare const CLOSE_DISCRIMINATOR = 5; export declare function getCloseDiscriminatorBytes(): ReadonlyUint8Array; export type CloseInstruction = string, TAccountDestinationAccount extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountProgramAccount extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountBufferOrProgramDataAccount extends string ? WritableAccount : TAccountBufferOrProgramDataAccount, TAccountDestinationAccount extends string ? WritableAccount : TAccountDestinationAccount, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountProgramAccount extends string ? ReadonlyAccount : TAccountProgramAccount, ...TRemainingAccounts ]>; export type CloseInstructionData = { discriminator: number; }; export type CloseInstructionDataArgs = {}; export declare function getCloseInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseInstructionDataCodec(): FixedSizeCodec; export type CloseInput = { /** Buffer or ProgramData account to close. */ bufferOrProgramDataAccount: Address; /** Destination account for reclaimed lamports. */ destinationAccount: Address; /** Authority (optional). */ authority?: TransactionSigner; /** Program account (optional). */ programAccount?: Address; }; export declare function getCloseInstruction(input: CloseInput, config?: { programAddress?: TProgramAddress; }): CloseInstruction; export type ParsedCloseInstruction = { programAddress: Address; accounts: { /** Buffer or ProgramData account to close. */ bufferOrProgramDataAccount: TAccountMetas[0]; /** Destination account for reclaimed lamports. */ destinationAccount: TAccountMetas[1]; /** Authority (optional). */ authority?: TAccountMetas[2] | undefined; /** Program account (optional). */ programAccount?: TAccountMetas[3] | undefined; }; data: CloseInstructionData; }; export declare function parseCloseInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseInstruction; //# sourceMappingURL=close.d.ts.map