import type { Provider } from 'ethers'; import type { TokenData } from '../types/contracts/token.contract.js'; import type { Market, CurrencyAddress } from '../types/models/market.model.js'; interface SetTokenDataOpts { tokenData: { [key: string]: TokenData; }; tokenId: string; price?: number; amount?: number; market: Market; currencyAddr?: CurrencyAddress; } /** * * Gets the symbol name for a given contract address. * * @async * @function * @param {string} contractAddress - The contract address to lookup. * @param {Provider} provider - An instance of Provider. * @returns {Promise} The symbol name of the contract or empty string if not found. **/ declare const getSymbolName: (contractAddress: string, provider: Provider) => Promise; /** * * Format the price to four decimal places, or less if all trailing decimals are zeros. * * @function * @param {number} price - Price to format. * @returns {string} Price with up to four decimal places. **/ declare const formatPrice: (price: number) => string; /** * * Sets the token data of a given token details. * * @function * @param {SetTokenDataOpts} opts - SetTokenDataOpts object. * @param {Token} opts.tokenData - The token data object. * @param {string} opts.tokenId - The token id. * @param {number} [opts.price=] - An optional nft sale price. * @param {number} [opts.amount=] - An optional token amount. * @param {Market} opts.market - The market object. * @param {CurrencyAddress} [opts.currencyAddr=] - An optional currency address. */ declare const setTokenData: (opts: SetTokenDataOpts) => void; export { formatPrice, setTokenData, getSymbolName }; //# sourceMappingURL=helper.d.ts.map