forked from GoogleChromeLabs/jsbi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjsbi.d.ts
41 lines (34 loc) · 1.35 KB
/
jsbi.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export default class JSBI {
private constructor(length: number, sign: boolean);
private length: number;
private sign: boolean;
static BigInt(from: number|string|boolean|object): JSBI;
toString(radix?: number): string;
static toNumber(x: JSBI): number;
static unaryMinus(x: JSBI): JSBI;
static bitwiseNot(x: JSBI): JSBI;
static exponentiate(x: JSBI, y: JSBI): JSBI;
static multiply(x: JSBI, y: JSBI): JSBI;
static divide(x: JSBI, y: JSBI): JSBI;
static remainder(x: JSBI, y: JSBI): JSBI;
static add(x: JSBI, y: JSBI): JSBI;
static subtract(x: JSBI, y: JSBI): JSBI;
static leftShift(x: JSBI, y: JSBI): JSBI;
static signedRightShift(x: JSBI, y: JSBI): JSBI;
static lessThan(x: JSBI, y: JSBI): boolean;
static lessThanOrEqual(x: JSBI, y: JSBI): boolean;
static greaterThan(x: JSBI, y: JSBI): boolean;
static greaterThanOrEqual(x: JSBI, y: JSBI): boolean;
static equal(x: JSBI, y: JSBI): boolean;
static notEqual(x: JSBI, y: JSBI): boolean;
static bitwiseAnd(x: JSBI, y: JSBI): JSBI;
static bitwiseXor(x: JSBI, y: JSBI): JSBI;
static bitwiseOr(x: JSBI, y: JSBI): JSBI;
static ADD(x: any, y: any): any;
static LT(x: any, y: any): boolean;
static LE(x: any, y: any): boolean;
static GT(x: any, y: any): boolean;
static GE(x: any, y: any): boolean;
static EQ(x: any, y: any): boolean;
static NE(x: any, y: any): boolean;
}