velocid
Version:
Revolutionary high-performance distributed ID generator with military-grade security
23 lines • 489 B
TypeScript
/**
* High-performance atomic counter for ID generation
*/
export declare class GlobalCounter {
private buffer;
private counter;
private hasSharedArrayBuffer;
constructor();
private initialize;
/**
* Get next counter value atomically
*/
getNext(): number;
/**
* Get current counter value
*/
getCurrent(): bigint;
/**
* Reset counter (for testing purposes)
*/
reset(): void;
}
//# sourceMappingURL=counter.d.ts.map