/** * Parse a decimal string into its base unit representation (e.g. ETH -> wei). * * Accepts scientific notation from either a number or a string. `String(1e-8)` * is `"1e-8"`, so any caller that stringifies an amount before passing it here * hits that form. * * @param value The decimal value as a string or number (e.g. "1.5") * @param decimals The number of decimal places (e.g. 18 for ETH) * @returns The value in base units as a bigint */ export declare function parseUnits(value: string | number | bigint, decimals: number): bigint; /** * Parse an ether-denominated value into wei. * Shorthand for `parseUnits(value, 18)`. */ export declare function parseEther(value: string | number | bigint): bigint;