/** * 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 Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { LIGHTHOUSE_PROGRAM_ADDRESS } from '../programs'; export declare const MEMORY_CLOSE_DISCRIMINATOR = 1; export declare function getMemoryCloseDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type MemoryCloseInstruction = 'L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95', TAccountPayer extends string | IAccountMeta = string, TAccountMemory extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountProgramId extends string ? ReadonlyAccount : TAccountProgramId, TAccountPayer extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountPayer, TAccountMemory extends string ? WritableAccount : TAccountMemory, ...TRemainingAccounts ]>; export type MemoryCloseInstructionData = { discriminator: number; memoryId: number; memoryBump: number; }; export type MemoryCloseInstructionDataArgs = { memoryId: number; memoryBump: number; }; export declare function getMemoryCloseInstructionDataEncoder(): Encoder; export declare function getMemoryCloseInstructionDataDecoder(): Decoder; export declare function getMemoryCloseInstructionDataCodec(): Codec; export type MemoryCloseInput = { /** Lighthouse program */ programId?: Address; /** Payer account */ payer: TransactionSigner; /** Memory account */ memory: Address; memoryId: MemoryCloseInstructionDataArgs['memoryId']; memoryBump: MemoryCloseInstructionDataArgs['memoryBump']; }; export declare function getMemoryCloseInstruction(input: MemoryCloseInput, config?: { programAddress?: TProgramAddress; }): MemoryCloseInstruction; export type ParsedMemoryCloseInstruction = { programAddress: Address; accounts: { /** Lighthouse program */ programId: TAccountMetas[0]; /** Payer account */ payer: TAccountMetas[1]; /** Memory account */ memory: TAccountMetas[2]; }; data: MemoryCloseInstructionData; }; export declare function parseMemoryCloseInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedMemoryCloseInstruction; //# sourceMappingURL=memoryClose.d.ts.map