/** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/metaplex-foundation/kinobi */ import { Context, Pda, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; import { PickPartial } from '../shared'; export declare type RedeemInstructionAccounts = { treeConfig?: PublicKey | Pda; leafOwner: Signer; leafDelegate?: PublicKey | Pda; merkleTree: PublicKey | Pda; voucher?: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type RedeemInstructionData = { discriminator: Array; root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; nonce: bigint; index: number; }; export declare type RedeemInstructionDataArgs = { root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; nonce: number | bigint; index: number; }; export declare function getRedeemInstructionDataSerializer(): Serializer; export declare type RedeemInstructionExtraArgs = { proof: Array; }; export declare type RedeemInstructionArgs = PickPartial; export declare function redeem(context: Pick, input: RedeemInstructionAccounts & RedeemInstructionArgs): TransactionBuilder;