@webkrafters/long-count
Version:
Long Count - intervals and timeout capable of handling superbly long wait times surviving device sleep and wake cycles.
15 lines (14 loc) • 647 B
TypeScript
import type { MyInteger } from '../../index';
export declare const add: (adder: Uint8Array, addend: Uint8Array) => Uint8Array;
export declare function fromScalar(scalar: number): Uint8Array;
export declare function fromScalar(scalar: string): Uint8Array;
export declare function fromScalar(scalar: number | string): Uint8Array;
export declare const subtract: (subtractor: Uint8Array, subtrahend: Uint8Array) => Uint8Array;
/**
* Attempts to rewrite Uint8Array elements into integer digits
* within MAX_SAFE_INTEGER range or return untouched.
*
* @param uint8
* @returns
*/
export declare const toMyInteger: (uint8: Uint8Array) => MyInteger;