/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const UI_AMOUNT_TO_AMOUNT_DISCRIMINATOR = 24; export declare function getUiAmountToAmountDiscriminatorBytes(): ReadonlyUint8Array; export type UiAmountToAmountInstruction = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? ReadonlyAccount : TAccountMint, ...TRemainingAccounts ]>; export type UiAmountToAmountInstructionData = { discriminator: number; /** The ui_amount of tokens to reformat. */ uiAmount: string; }; export type UiAmountToAmountInstructionDataArgs = { /** The ui_amount of tokens to reformat. */ uiAmount: string; }; export declare function getUiAmountToAmountInstructionDataEncoder(): Encoder; export declare function getUiAmountToAmountInstructionDataDecoder(): Decoder; export declare function getUiAmountToAmountInstructionDataCodec(): Codec; export type UiAmountToAmountInput = { /** The mint to calculate for. */ mint: Address; uiAmount: UiAmountToAmountInstructionDataArgs['uiAmount']; }; export declare function getUiAmountToAmountInstruction(input: UiAmountToAmountInput, config?: { programAddress?: TProgramAddress; }): UiAmountToAmountInstruction; export type ParsedUiAmountToAmountInstruction = { programAddress: Address; accounts: { /** The mint to calculate for. */ mint: TAccountMetas[0]; }; data: UiAmountToAmountInstructionData; }; export declare function parseUiAmountToAmountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUiAmountToAmountInstruction; //# sourceMappingURL=uiAmountToAmount.d.ts.map