import type BN from 'bn.js'; /** * encodeNumber * Takes a decimal string, hex string, regular number, or BN instance and returns a hex string in the specified format. * Typically these conversions are done in web3, but until web3 adds direct support, this is necessary for normalizing * numbers eth_signTypedData payloads. * @param num The value to convert * @param type The solidity ABI type to format the data as (eg. uint256, int8, etc). Only supports int and uint variants. * @param compact boolean (default false). Whether to use compact encoding for uints, or pad with zeroes. * @returns {string} A hex string formatted as the specified type. */ export declare function encodeNumber(num: string | number | BN, type: string, compact?: boolean): string; export declare const toHex: (num: number) => string;