/** * 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'; import { type SettleAndSealArgs, type SettleAndSealArgsArgs } from '../types/index.js'; export declare const SETTLE_AND_SEAL_DISCRIMINATOR = 4; export declare function getSettleAndSealDiscriminatorBytes(): ReadonlyUint8Array; export type SettleAndSealInstruction = string, TAccountChannel extends string | AccountMeta = string, TAccountInstructionsSysvar extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayee extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPayee, TAccountChannel extends string ? WritableAccount : TAccountChannel, TAccountInstructionsSysvar extends string ? ReadonlyAccount : TAccountInstructionsSysvar, ...TRemainingAccounts ]>; export type SettleAndSealInstructionData = { discriminator: number; settleAndSealArgs: SettleAndSealArgs; }; export type SettleAndSealInstructionDataArgs = { settleAndSealArgs: SettleAndSealArgsArgs; }; export declare function getSettleAndSealInstructionDataEncoder(): FixedSizeEncoder; export declare function getSettleAndSealInstructionDataDecoder(): FixedSizeDecoder; export declare function getSettleAndSealInstructionDataCodec(): FixedSizeCodec; export type SettleAndSealInput = { payee: TransactionSigner; channel: Address; instructionsSysvar: Address; settleAndSealArgs: SettleAndSealInstructionDataArgs['settleAndSealArgs']; }; export declare function getSettleAndSealInstruction(input: SettleAndSealInput, config?: { programAddress?: TProgramAddress; }): SettleAndSealInstruction; export type ParsedSettleAndSealInstruction = { programAddress: Address; accounts: { payee: TAccountMetas[0]; channel: TAccountMetas[1]; instructionsSysvar: TAccountMetas[2]; }; data: SettleAndSealInstructionData; }; export declare function parseSettleAndSealInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSettleAndSealInstruction; //# sourceMappingURL=settleAndSeal.d.ts.map