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