1 |
|
2 | import { Numberish } from './types';
|
3 | export declare const hexUtils: {
|
4 | concat: typeof concat;
|
5 | random: typeof random;
|
6 | leftPad: typeof leftPad;
|
7 | rightPad: typeof rightPad;
|
8 | invert: typeof invert;
|
9 | slice: typeof slice;
|
10 | hash: typeof hash;
|
11 | size: typeof size;
|
12 | toHex: typeof toHex;
|
13 | isHex: typeof isHex;
|
14 | };
|
15 |
|
16 |
|
17 |
|
18 | declare function concat(...args: Array<string | number | Buffer>): string;
|
19 |
|
20 |
|
21 |
|
22 | declare function random(_size?: number): string;
|
23 |
|
24 |
|
25 |
|
26 | declare function leftPad(n: Numberish, _size?: number): string;
|
27 |
|
28 |
|
29 |
|
30 | declare function rightPad(n: Numberish, _size?: number): string;
|
31 |
|
32 |
|
33 |
|
34 | declare function invert(n: Numberish, _size?: number): string;
|
35 |
|
36 |
|
37 |
|
38 | declare function slice(n: Numberish, start: number, end?: number): string;
|
39 |
|
40 |
|
41 |
|
42 | declare function hash(n: Numberish | Buffer): string;
|
43 |
|
44 |
|
45 |
|
46 | declare function size(hex: string): number;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | declare function toHex(n: Numberish | Buffer, _size?: number): string;
|
52 |
|
53 |
|
54 |
|
55 | declare function isHex(s: string): boolean;
|
56 | export {};
|
57 |
|
\ | No newline at end of file |