/** * 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, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const CLOSE_BUNDLED_POSITION_DISCRIMINATOR: ReadonlyUint8Array; export declare function getCloseBundledPositionDiscriminatorBytes(): ReadonlyUint8Array; export type CloseBundledPositionInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountBundledPosition extends string ? WritableAccount : TAccountBundledPosition, TAccountPositionBundle extends string ? WritableAccount : TAccountPositionBundle, TAccountPositionBundleTokenAccount extends string ? ReadonlyAccount : TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPositionBundleAuthority, TAccountReceiver extends string ? WritableAccount : TAccountReceiver, ...TRemainingAccounts ]>; export interface CloseBundledPositionInstructionData { discriminator: ReadonlyUint8Array; bundleIndex: number; } export interface CloseBundledPositionInstructionDataArgs { bundleIndex: number; } export declare function getCloseBundledPositionInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseBundledPositionInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseBundledPositionInstructionDataCodec(): FixedSizeCodec; export interface CloseBundledPositionInput { bundledPosition: Address; positionBundle: Address; positionBundleTokenAccount: Address; positionBundleAuthority: TransactionSigner; receiver: Address; bundleIndex: CloseBundledPositionInstructionDataArgs["bundleIndex"]; } export declare function getCloseBundledPositionInstruction(input: CloseBundledPositionInput, config?: { programAddress?: TProgramAddress; }): CloseBundledPositionInstruction; export interface ParsedCloseBundledPositionInstruction { programAddress: Address; accounts: { bundledPosition: TAccountMetas[0]; positionBundle: TAccountMetas[1]; positionBundleTokenAccount: TAccountMetas[2]; positionBundleAuthority: TAccountMetas[3]; receiver: TAccountMetas[4]; }; data: CloseBundledPositionInstructionData; } export declare function parseCloseBundledPositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseBundledPositionInstruction; //# sourceMappingURL=closeBundledPosition.d.ts.map