/** * 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 DelegateInstructionAccounts = { treeConfig?: PublicKey | Pda; leafOwner: Signer; previousLeafDelegate: PublicKey | Pda; newLeafDelegate: PublicKey | Pda; merkleTree: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type DelegateInstructionData = { discriminator: Array; root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; nonce: bigint; index: number; }; export declare type DelegateInstructionDataArgs = { root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; nonce: number | bigint; index: number; }; export declare function getDelegateInstructionDataSerializer(): Serializer; export declare type DelegateInstructionExtraArgs = { proof: Array; }; export declare type DelegateInstructionArgs = PickPartial; export declare function delegate(context: Pick, input: DelegateInstructionAccounts & DelegateInstructionArgs): TransactionBuilder;