UNPKG

@thi.ng/ksuid

Version:

Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions

18 lines 588 B
import { AKSUID } from "./aksuid.js"; import type { KSUIDOpts } from "./api.js"; export declare class KSUID64 extends AKSUID { constructor(opts?: Partial<KSUIDOpts>); timeOnlyBinary(epoch?: number, buf?: Uint8Array): Uint8Array<ArrayBufferLike>; parse(id: string): { epoch: number; id: Uint8Array<ArrayBuffer>; }; } /** * Creates and returns a new 64bit epoch KSUID generator instance (w/ * millisecond time precision). * * @param opts - */ export declare const defKSUID64: (opts?: Partial<KSUIDOpts>) => KSUID64; //# sourceMappingURL=ksuid64.d.ts.map