import type { Network } from "@saberhq/solana-contrib"; import { Token, TokenAmount } from "@saberhq/token-utils"; import { PublicKey } from "@solana/web3.js"; import type { AddDecimalsProgram } from "../../programs"; /** * Wrapped token with altered decimals. * * To reload this token after initializing it, construct a "WrappedTokenActions" * and call `reload`. */ export declare class LazyWrappedToken { readonly underlying: Token; readonly wrapper: PublicKey; readonly mintAccount: K; readonly decimals: number; constructor(underlying: Token, wrapper: PublicKey, mintAccount: K, decimals: number); get name(): string; get symbol(): string; get chainId(): number; get network(): Network; get icon(): string | undefined; get address(): K extends null ? null : string; get multiplier(): number; equals(other: LazyWrappedToken): boolean; get token(): K extends null ? null : Token; /** * Loads a wrapped token. */ static load(program: AddDecimalsProgram, underlying: Token, decimals: number): Promise; /** * Gets the address and nonce of a wrapped token. * @param programID * @param underlyingMint * @param decimals * @returns */ static getAddressAndNonce(programID: PublicKey, underlyingMint: PublicKey, decimals: number): Promise<[PublicKey, number]>; /** * Gets the address of a wrapped token. * @param programID * @param underlyingMint * @param decimals * @returns */ static getAddressSync(underlyingMint: PublicKey, decimals: number): PublicKey; } /** * Wrapped token that is already initialized. */ export declare class WrappedToken extends LazyWrappedToken { calculateDepositOutputAmount(inputAmount: TokenAmount): TokenAmount; calculateWithdrawOutputAmount(inputAmount: TokenAmount): TokenAmount; calculateOutputAmount(inputAmount: TokenAmount): TokenAmount; } //# sourceMappingURL=wrappedToken.d.ts.map