UNPKG

355 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '../bn/bn.js';
3import type { ToBn } from '../types.js';
4/**
5 * @name formatElapsed
6 * @description Formats an elapsed value into s, m, h or day segments
7 */
8export declare function formatElapsed<ExtToBn extends ToBn>(now?: Date | null, value?: bigint | BN | ExtToBn | Date | number | null): string;