import { AccountMeta, PublicKey, TransactionInstruction } from '@xoneorg/web3.js'; import { TokenInstruction } from './types.js'; /** TODO: docs */ export interface UpdateTokenSymbolInstructionData { instruction: TokenInstruction.UpdateSymbol; symbol: Uint8Array; } /** TODO: docs */ export declare const updateTokenSymbolInstructionData: import("@xoneorg/buffer-layout").Structure; /** * Construct an createUpdateTokenSymbol instruction * * @param mint Token mint account * @param mintMetaAuthority Minting authority * @param symbol Token name * @param programId SPL Token program account * * @return Instruction to add to a transaction */ export declare function createUpdateTokenSymbolInstruction(mintMeta: PublicKey, mintMetaAuthority: PublicKey, symbol: String, programId?: PublicKey): TransactionInstruction; /** A decoded, valid UpdateTokenSymbol instruction */ export interface DecodedUpdateTokenSymbolInstruction { programId: PublicKey; keys: { mintMeta: AccountMeta; mintMetaAuthority: AccountMeta; }; data: { instruction: TokenInstruction.UpdateSymbol; symbol: String; }; } /** * Decode an UpdateTokenSymbol instruction and validate it * * @param instruction Transaction instruction to decode * @param programId SPL Token program account * * @return Decoded, valid instruction */ export declare function decodeTokenSymbolInstruction(instruction: TransactionInstruction, programId?: PublicKey): DecodedUpdateTokenSymbolInstruction; /** A decoded, non-validated UpdateTokenSymbol instruction */ export interface DecodedTokenSymbolInstructionUnchecked { programId: PublicKey; keys: { mintMeta: AccountMeta | undefined; mintMetaAuthority: AccountMeta | undefined; }; data: { instruction: number; symbol: String; }; } /** * Decode an UpdateTokenSymbol instruction without validating it * * @param instruction Transaction instruction to decode * * @return Decoded, non-validated instruction */ export declare function decodeTokenSymbolInstructionUnchecked({ programId, keys: [mintMeta, mintMetaAuthority], data, }: TransactionInstruction): DecodedTokenSymbolInstructionUnchecked; //# sourceMappingURL=updateTokenSymbol.d.ts.map