import { BigNumber, BigNumberish } from '@ethersproject/bignumber'; /** * Encode Uint8Array into string using Base-64 encoding. */ export declare function encodeBase64(bytes: Uint8Array): string; /** * Decode Base-64 encoded string and returns Uint8Array of bytes. * * @param base64String base16 encoded string */ export declare function decodeBase64(base64String: string): Uint8Array; /** * Convert base64 encoded string to base16 encoded string * * @param base64 base64 encoded string */ export declare function base64to16(base64: string): string; /** * Encode Uint8Array into string using Base-16 encoding. */ export declare function encodeBase16(bytes: Uint8Array): string; /** * Decode Base-16 encoded string and returns Uint8Array of bytes. * * @param base16String base16 encoded string */ export declare function decodeBase16(base16String: string): Uint8Array; /** * Convert a CSPR amount to its mote equivalent * @param cspr A `BigNumberish` amount of CSPR to convert to the mote equivalent * @returns A `BigNumber` containing the CSPR amount * @remarks 1 CSPR = 10^9 motes */ export declare function csprToMotes(cspr: BigNumberish): BigNumber; /** * Convert an amount in motes to its CSPR equivalent * @param motes A `BigNumberish` amount of motes to convert to the CSPR equivalent * @returns A `BigNumber` containing the CSPR amount * @remarks * Note that this function will round to the nearest whole integer * 1 mote = 10^-9 CSPR */ export declare function motesToCSPR(motes: BigNumberish): BigNumber;