UNPKG

461 BTypeScriptView Raw
1import { Version1Options } from './types.js';
2type V1State = {
3 node?: Uint8Array;
4 clockseq?: number;
5 msecs?: number;
6 nsecs?: number;
7};
8declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string;
9declare function v1(options: Version1Options | undefined, buf: Uint8Array, offset?: number): Uint8Array;
10export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State;
11export default v1;