/** * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { PAYMENT_CHANNELS_PROGRAM_ADDRESS } from '../programs/index.js'; export declare const REQUEST_CLOSE_DISCRIMINATOR = 5; export declare function getRequestCloseDiscriminatorBytes(): ReadonlyUint8Array; export type RequestCloseInstruction = string, TAccountChannel extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPayer, TAccountChannel extends string ? WritableAccount : TAccountChannel, ...TRemainingAccounts ]>; export type RequestCloseInstructionData = { discriminator: number; }; export type RequestCloseInstructionDataArgs = {}; export declare function getRequestCloseInstructionDataEncoder(): FixedSizeEncoder; export declare function getRequestCloseInstructionDataDecoder(): FixedSizeDecoder; export declare function getRequestCloseInstructionDataCodec(): FixedSizeCodec; export type RequestCloseInput = { payer: TransactionSigner; channel: Address; }; export declare function getRequestCloseInstruction(input: RequestCloseInput, config?: { programAddress?: TProgramAddress; }): RequestCloseInstruction; export type ParsedRequestCloseInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; channel: TAccountMetas[1]; }; data: RequestCloseInstructionData; }; export declare function parseRequestCloseInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRequestCloseInstruction; //# sourceMappingURL=requestClose.d.ts.map