import type { Fn0 , Fn2 , Timestamp } from "./api.js" ; remarks param x internal export const isString = ( x ) : x is string => typeof x === "string" ; remarks internal export const now = typeof BigInt !== "undefined" ? typeof process !== "undefined" && typeof process . hrtime !== "undefined" && typeof process . hrtime . bigint === "function" ? ( ) => process . hrtime . bigint ( ) : ( ) => BigInt ( Date . now ( ) * 1e6 ) : ( ) => Date . now ( ) * 1e6 ; /**
 * Returns the (rounded) difference in milliseconds between two given
 *  Timestamp s.
 *
 *  remarks param a param b internal export const timeDiff = ( a , b ) => Math . round ( ( typeof BigInt !== "undefined" ? Number ( < bigint > b - < bigint > a ) : < number > b - < number > a ) * 1e-6 ) ;