UNPKG

516 BTypeScriptView Raw
1import BigNumber from 'bignumber.js';
2/**
3 * class for encoding and decoding quality
4 */
5declare class quality {
6 /**
7 * Encode quality amount
8 *
9 * @param arg string representation of an amount
10 * @returns Serialized quality
11 */
12 static encode(quality: string): Uint8Array;
13 /**
14 * Decode quality amount
15 *
16 * @param arg hex-string denoting serialized quality
17 * @returns deserialized quality
18 */
19 static decode(quality: string): BigNumber;
20}
21export { quality };