mirror of
https://github.com/danog/fast-srp.git
synced 2024-11-26 20:04:49 +01:00
24 lines
596 B
TypeScript
24 lines
596 B
TypeScript
declare class BigInteger {
|
|
constructor(number: number | string, base?: number);
|
|
constructor(number: Buffer);
|
|
constructor(number: unknown);
|
|
|
|
toString(base?: number): string;
|
|
toBuffer(trimOrSize?: true | number): Buffer;
|
|
|
|
/** @return {number} 1 if this > a, -1 if this < a, 0 if equal */
|
|
compareTo(a: BigInteger): -1 | 0 | 1;
|
|
|
|
multiply(b: BigInteger): BigInteger;
|
|
|
|
add(b: BigInteger | number): BigInteger;
|
|
subtract(b: BigInteger): BigInteger;
|
|
|
|
modPow(b: BigInteger, N: BigInteger): BigInteger;
|
|
mod(b: BigInteger): BigInteger;
|
|
|
|
bitLength(): number;
|
|
}
|
|
|
|
export = BigInteger;
|