import { Types } from "../declarations"; import BigNumber from 'bignumber.js'; /** * Calculate the CRC32 of an ArrayBufferLike. * @param buf The BufferLike to calculate the CRC32 of. */ export declare function getCrc32(buf: any): number; /** * Type definition for options of toBigNumber function. * @param {boolean} isNotANumber Represents whether a number * @param {boolean} isEmpty Represents whether a empty value * @param {boolean} isNegative Represents whether a negative */ export interface ToBigNumberOptions { validate?: { isNotANumber?: boolean; isEmpty?: boolean; isNegative?: boolean; }; } /** * Converts a value to a BigNumber. * @param {Types.Number} num Represents number value. * @param {ToBigNumberOptions} options Represents value options. * @returns {BigNumber} */ export declare const toBigNumber: (num?: Types.Number | undefined, options?: ToBigNumberOptions | undefined) => BigNumber; /** * Create an exponential notation by given decimals. * @param {Types.Number} decimals * @returns {BigNumber} */ export declare const toExponential: (decimals: Types.Number) => BigNumber; /** * Formats an amount to a small string with scientific notation * @param {Types.Amount} amount * @returns {string} */ export declare const formatAmount: (amount: Types.Amount) => string; export declare const VerifyDomainName: (domain: string | undefined) => boolean; export declare const removeIcpSuffix: (name: string | undefined) => string; export declare const addIcpSuffix: (name: string | undefined) => string; export declare const verifyAccountId: (hexString: string) => boolean;