/** * 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 { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; export declare const SET_TREE_DELEGATE_DISCRIMINATOR: Uint8Array; export declare function getSetTreeDelegateDiscriminatorBytes(): ReadonlyUint8Array; export type SetTreeDelegateInstruction = string, TAccountTreeCreator extends string | AccountMeta = string, TAccountNewTreeDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountTreeConfig extends string ? WritableAccount : TAccountTreeConfig, TAccountTreeCreator extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountTreeCreator, TAccountNewTreeDelegate extends string ? ReadonlyAccount : TAccountNewTreeDelegate, TAccountMerkleTree extends string ? ReadonlyAccount : TAccountMerkleTree, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type SetTreeDelegateInstructionData = { discriminator: ReadonlyUint8Array; }; export type SetTreeDelegateInstructionDataArgs = {}; export declare function getSetTreeDelegateInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetTreeDelegateInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetTreeDelegateInstructionDataCodec(): FixedSizeCodec; export type SetTreeDelegateAsyncInput = { treeConfig?: Address; treeCreator: TransactionSigner; newTreeDelegate: Address; merkleTree: Address; systemProgram?: Address; }; export declare function getSetTreeDelegateInstructionAsync(input: SetTreeDelegateAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type SetTreeDelegateInput = { treeConfig: Address; treeCreator: TransactionSigner; newTreeDelegate: Address; merkleTree: Address; systemProgram?: Address; }; export declare function getSetTreeDelegateInstruction(input: SetTreeDelegateInput, config?: { programAddress?: TProgramAddress; }): SetTreeDelegateInstruction; export type ParsedSetTreeDelegateInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; treeCreator: TAccountMetas[1]; newTreeDelegate: TAccountMetas[2]; merkleTree: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: SetTreeDelegateInstructionData; }; export declare function parseSetTreeDelegateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetTreeDelegateInstruction; //# sourceMappingURL=setTreeDelegate.d.ts.map