UNPKG

318 BTypeScriptView Raw
1import type { BN } from '../bn/bn.js';
2interface Compact<T> {
3 toBigInt(): bigint;
4 toBn(): BN;
5 toNumber(): number;
6 unwrap(): T;
7}
8/**
9 * @name isCompact
10 * @summary Tests for SCALE-Compact-like object instance.
11 */
12export declare const isCompact: <T>(value?: unknown) => value is Compact<T>;
13export {};