UNPKG

401 BTypeScriptView Raw
1/// <reference types="node" />
2
3type rand = { getByte: () => number };
4
5interface RandStatic {
6 new(rand: rand): RandInstance;
7}
8
9interface RandInstance {
10 rand: rand;
11 generate(len: number): Buffer | Uint8Array;
12}
13
14interface BrorandStatic {
15 (len: number): Buffer | Uint8Array;
16 Rand: RandStatic;
17}
18
19declare namespace Brorand {}
20
21declare let Brorand: BrorandStatic;
22
23export = Brorand;