import type { BigNumberish, Multiplier } from "../types"; /** * Returns the max bigint in a list of bigints * * @param {bigint[]} args a list of bigints to get the max of * @returns {bigint} the max bigint in the list */ export declare const bigIntMax: (...args: bigint[]) => bigint; /** * Returns the min bigint in a list of bigints * * @param {bigint[]} args a list of bigints to get the max of * @returns {bigint} the min bigint in the list */ export declare const bigIntMin: (...args: bigint[]) => bigint; /** * Given a bigint and a min-max range, returns the min-max clamped bigint value * * @param {BigNumberish} value a bigint value to clamp * @param {BigNumberish | undefined} lower lower bound min max tuple value * @param {BigNumberish | undefined} upper upper bound min max tuple value * @returns {bigint} the clamped bigint value per given range */ export declare const bigIntClamp: (value: BigNumberish, lower: BigNumberish | null | undefined, upper: BigNumberish | null | undefined) => bigint; export declare enum RoundingMode { ROUND_DOWN = 0, ROUND_UP = 1 } /** * Given a bigint and a number (which can be a float), returns the bigint value. * Note: this function has loss and will round down to the nearest integer. * * @param {BigNumberish} base - the number to be multiplied * @param {number} multiplier - the amount to multiply by * @param {RoundingMode} roundingMode - the rounding mode to use when calculating the percent. defaults to ROUND_UP * @returns {bigint} the bigint value of the multiplication with the number rounded by the rounding mode */ export declare const bigIntMultiply: (base: BigNumberish, multiplier: Multiplier["multiplier"], roundingMode?: RoundingMode) => bigint; /** * Useful if you want to use a string, such as a user's email address, as salt to generate a unique SmartAccount per user. * * example: * ``` * const salt = stringToIndex("alice@example.com"); * * export const account = new SimpleSmartContractAccount({ * index: salt, * // other args omitted... * }); * ``` * * @param {string} phrase -- any string value. * @returns {bigint} the bigint value of the hashed string */ export declare const stringToIndex: (phrase: string) => bigint;