import { Timeflake } from './timeflake'; import BN from 'bn.js'; /** * */ interface arg_bytes { type: 'bytes'; value: Uint8Array; } interface arg_int { type: 'int'; value: number; } interface arg_BN { type: 'BN'; value: BN; } interface arg_hex { type: 'hex'; value: string; } interface arg_base62 { type: 'base62'; value: string; } declare type parse_arg = arg_base62 | arg_int | arg_hex | arg_bytes | arg_BN; /** parse an existing flake, @param arg parse arg, see documentation @see [available arguments](https://github.com/zzzz465/timeflake4js#example) */ export declare function parse(arg: parse_arg): Timeflake; /** * generates random timeflake * @returns Timeflake instance */ export declare function random(): Timeflake; /** * generate timeflake from given values * @param timestamp * @param random */ export declare function from_values(timestamp: BN, random?: BN): Timeflake; export {}; //# sourceMappingURL=index.d.ts.map