/** * 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const AMOUNT_TO_UI_AMOUNT_DISCRIMINATOR = 23; export declare function getAmountToUiAmountDiscriminatorBytes(): ReadonlyUint8Array; export type AmountToUiAmountInstruction = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? ReadonlyAccount : TAccountMint, ...TRemainingAccounts ]>; export type AmountToUiAmountInstructionData = { discriminator: number; /** The amount of tokens to reformat. */ amount: bigint; }; export type AmountToUiAmountInstructionDataArgs = { /** The amount of tokens to reformat. */ amount: number | bigint; }; export declare function getAmountToUiAmountInstructionDataEncoder(): FixedSizeEncoder; export declare function getAmountToUiAmountInstructionDataDecoder(): FixedSizeDecoder; export declare function getAmountToUiAmountInstructionDataCodec(): FixedSizeCodec; export type AmountToUiAmountInput = { /** The mint to calculate for. */ mint: Address; amount: AmountToUiAmountInstructionDataArgs['amount']; }; export declare function getAmountToUiAmountInstruction(input: AmountToUiAmountInput, config?: { programAddress?: TProgramAddress; }): AmountToUiAmountInstruction; export type ParsedAmountToUiAmountInstruction = { programAddress: Address; accounts: { /** The mint to calculate for. */ mint: TAccountMetas[0]; }; data: AmountToUiAmountInstructionData; }; export declare function parseAmountToUiAmountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAmountToUiAmountInstruction; //# sourceMappingURL=amountToUiAmount.d.ts.map