/** * flake53 (https://github.com/cablehead/python-fity3) * * timestamp | workerId | sequence * 41 bits | 8 bits | 4 bits * * * flake63 (https://github.com/luxe-eng/flake-idgen-63) * (63bit in order to help java, the poor thing) * * reserved | timestamp | processId | workerId | sequence * 1 bit | 42 bits | 4 bits | 5 bits | 12 bits * | id | * | 9 bits | * * * discord/twitter64 (https://discordapp.com/developers/docs/reference#snowflakes) * * timestamp | workerId | processId | sequence * 42 bits | 5 bits | 5 bits | 12 bits * */ export interface Flake53Params { timestamp?: number; workerId?: number; sequence?: number; epoch?: number; } /** * a 53 bit flake, which helps in IEEE 754 environments, particularly javascript * Thankyou to https://github.com/cablehead/python-fity3 for not having to think about this * timestamp | workerId | sequence * 41 bits | 4 bits | 8 bits * */ export declare function buildFlake53({ timestamp, workerId, sequence, epoch }?: Flake53Params): number; /** * * the elixir parse looks like this: << timestamp :: size(52), workerId :: size(8), sequence :: size(4) >> = <<505676010::64>> * @param flake53 * @param epoch */ export declare function parseFlake53(flake53: number, epoch?: number): Flake53Params;