/** * 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 HasAddress, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit"; import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core"; import { PHYGITAL_TOKEN_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const SET_ADMIN_DISCRIMINATOR: ReadonlyUint8Array; export declare function getSetAdminDiscriminatorBytes(): ReadonlyUint8Array; export type SetAdminInstruction = string, TAccountAdminConfig extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountAdminConfig extends string ? WritableAccount : TAccountAdminConfig, ...TRemainingAccounts ]>; export type SetAdminInstructionData = { discriminator: ReadonlyUint8Array; newAdmin: Address; }; export type SetAdminInstructionDataArgs = { newAdmin: Address | HasAddress; }; export declare function getSetAdminInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetAdminInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetAdminInstructionDataCodec(): FixedSizeCodec; export type SetAdminAsyncInput = { admin: TAccountAdmin; adminConfig?: TAccountAdminConfig; newAdmin: SetAdminInstructionDataArgs["newAdmin"]; }; export declare function getSetAdminInstructionAsync(input: SetAdminAsyncInput, config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress; }; }): Promise>, ResolvedInstructionAccountMeta>>>; export type SetAdminInput = { admin: TAccountAdmin; adminConfig: TAccountAdminConfig; newAdmin: SetAdminInstructionDataArgs["newAdmin"]; }; export declare function getSetAdminInstruction(input: SetAdminInput, config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress; }; }): SetAdminInstruction>, ResolvedInstructionAccountMeta>>; export type ParsedSetAdminInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; adminConfig: TAccountMetas[1]; }; data: SetAdminInstructionData; }; export declare function parseSetAdminInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetAdminInstruction; //# sourceMappingURL=setAdmin.d.ts.map