import { AccountMeta, PublicKey, TransactionInstruction } from '@xoneorg/web3.js'; import { TokenInstruction } from './types.js'; /** TODO: docs */ export interface UpdateTokenIconInstructionData { instruction: TokenInstruction.UpdateIcon; icon: Uint8Array; } /** TODO: docs */ export declare const updateTokenIconInstructionData: import("@xoneorg/buffer-layout").Structure; /** * Construct an createUpdateTokenIcon instruction * * @param mintMetaAuthority Minting authority * @param icon Token name * @param programId SPL Token program account * * @return Instruction to add to a transaction */ export declare function createUpdateTokenIconInstruction(mintMeta: PublicKey, mintMetaAuthority: PublicKey, icon: String, programId?: PublicKey): TransactionInstruction; /** A decoded, valid UpdateTokenIcon instruction */ export interface DecodedUpdateTokenIconInstruction { programId: PublicKey; keys: { mintMeta: AccountMeta; mintMetaAuthority: AccountMeta; }; data: { instruction: TokenInstruction.UpdateIcon; icon: String; }; } /** * Decode an UpdateTokenIcon instruction and validate it * * @param instruction Transaction instruction to decode * @param programId SPL Token program account * * @return Decoded, valid instruction */ export declare function decodeTokenIconInstruction(instruction: TransactionInstruction, programId?: PublicKey): DecodedUpdateTokenIconInstruction; /** A decoded, non-validated UpdateTokenIcon instruction */ export interface DecodedTokenIconInstructionUnchecked { programId: PublicKey; keys: { mintMeta: AccountMeta | undefined; mintMetaAuthority: AccountMeta | undefined; }; data: { instruction: number; icon: String; }; } /** * Decode an UpdateTokenIcon instruction without validating it * * @param instruction Transaction instruction to decode * * @return Decoded, non-validated instruction */ export declare function decodeTokenIconInstructionUnchecked({ programId, keys: [mintMeta, mintMetaAuthority], data, }: TransactionInstruction): DecodedTokenIconInstructionUnchecked; //# sourceMappingURL=updateTokenIcon.d.ts.map