/** * ?????????????????? - 0000 - 000000 * n:timestamp offset - 4:worker - 6:serial * m bits - n bits * m:pool - n:timestamp offset */ export declare class SimpleDistributedIdGenerator { private static startEpoch; private _lastStamp; private _sequence; private readonly _workerId; private readonly workerBits; private readonly sequenceBits; private readonly sequenceMask; private readonly workerShift; private readonly timestampShift; constructor(workerId?: number); nextId(): number; private static currentTimestamp; private static tilNextMillis; } export declare class SimpleIdGenerator { private readonly prefix; private static startEpoch; private readonly workerId; constructor(prefix?: string, workerId?: number); nextId(): string; static nextId(prefix?: string, workerId?: number): string; } export declare class SimpleIdGeneratorHelper { private static readonly chance; static registeredTypes: { [key: string]: string; }; static registeredRandomPrefixes: Set; static nextId(prefix?: string, workerId?: number): string; static nextIdByType(type: string, workerId?: number): string; static randomId(prefix?: string, length?: number): string; }