/** * 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 { PAYMENT_CHANNELS_PROGRAM_ADDRESS } from '../programs/index.js'; export declare const WITHDRAW_PAYER_DISCRIMINATOR = 8; export declare function getWithdrawPayerDiscriminatorBytes(): ReadonlyUint8Array; export type WithdrawPayerInstruction = string, TAccountChannel extends string | AccountMeta = string, TAccountChannelTokenAccount extends string | AccountMeta = string, TAccountPayerTokenAccount extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPayer, TAccountChannel extends string ? WritableAccount : TAccountChannel, TAccountChannelTokenAccount extends string ? WritableAccount : TAccountChannelTokenAccount, TAccountPayerTokenAccount extends string ? WritableAccount : TAccountPayerTokenAccount, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type WithdrawPayerInstructionData = { discriminator: number; }; export type WithdrawPayerInstructionDataArgs = {}; export declare function getWithdrawPayerInstructionDataEncoder(): FixedSizeEncoder; export declare function getWithdrawPayerInstructionDataDecoder(): FixedSizeDecoder; export declare function getWithdrawPayerInstructionDataCodec(): FixedSizeCodec; export type WithdrawPayerInput = { payer: TransactionSigner; channel: Address; channelTokenAccount: Address; payerTokenAccount: Address; mint: Address; tokenProgram: Address; }; export declare function getWithdrawPayerInstruction(input: WithdrawPayerInput, config?: { programAddress?: TProgramAddress; }): WithdrawPayerInstruction; export type ParsedWithdrawPayerInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; channel: TAccountMetas[1]; channelTokenAccount: TAccountMetas[2]; payerTokenAccount: TAccountMetas[3]; mint: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; }; data: WithdrawPayerInstructionData; }; export declare function parseWithdrawPayerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWithdrawPayerInstruction; //# sourceMappingURL=withdrawPayer.d.ts.map