/** * 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, type WritableSignerAccount } from "@solana/kit"; import { VOLTR_VAULT_PROGRAM_ADDRESS } from "../programs"; export declare const CLOSE_STRATEGY_DISCRIMINATOR: Uint8Array; export declare function getCloseStrategyDiscriminatorBytes(): ReadonlyUint8Array; export type CloseStrategyInstruction = string, TAccountManager extends string | AccountMeta = string, TAccountProtocol extends string | AccountMeta = string, TAccountVault extends string | AccountMeta = string, TAccountStrategy extends string | AccountMeta = string, TAccountStrategyInitReceipt extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountManager extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountManager, TAccountProtocol extends string ? ReadonlyAccount : TAccountProtocol, TAccountVault extends string ? ReadonlyAccount : TAccountVault, TAccountStrategy extends string ? ReadonlyAccount : TAccountStrategy, TAccountStrategyInitReceipt extends string ? WritableAccount : TAccountStrategyInitReceipt, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CloseStrategyInstructionData = { discriminator: ReadonlyUint8Array; }; export type CloseStrategyInstructionDataArgs = {}; export declare function getCloseStrategyInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseStrategyInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseStrategyInstructionDataCodec(): FixedSizeCodec; export type CloseStrategyAsyncInput = { payer: TransactionSigner; manager: TransactionSigner; protocol?: Address; vault: Address; strategy: Address; strategyInitReceipt?: Address; systemProgram?: Address; }; export declare function getCloseStrategyInstructionAsync(input: CloseStrategyAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type CloseStrategyInput = { payer: TransactionSigner; manager: TransactionSigner; protocol: Address; vault: Address; strategy: Address; strategyInitReceipt: Address; systemProgram?: Address; }; export declare function getCloseStrategyInstruction(input: CloseStrategyInput, config?: { programAddress?: TProgramAddress; }): CloseStrategyInstruction; export type ParsedCloseStrategyInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; manager: TAccountMetas[1]; protocol: TAccountMetas[2]; vault: TAccountMetas[3]; strategy: TAccountMetas[4]; strategyInitReceipt: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: CloseStrategyInstructionData; }; export declare function parseCloseStrategyInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseStrategyInstruction; //# sourceMappingURL=closeStrategy.d.ts.map