UNPKG

544 BTypeScriptView Raw
1import { Decimal } from 'decimal.js';
2import { Buffer } from 'buffer/';
3/**
4 * class for encoding and decoding quality
5 */
6declare 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}
22export { quality };