import type { NonZeroPositiveInteger } from '@chzky/core'; /** ## `random` : 生成一个随机字符串 + 根据`len`创建一个随机长度的字符串,一般来说长度为`16`以上才能保证安全,所以默认长度是`16` @category Crypto */ export declare function random_str(len?: NonZeroPositiveInteger): string; export declare function encode_time(timestamp: number): string; /** ## `ulid` : 生成一个基于时间的唯一ID @category Crypto */ export declare function ulid(date?: number): string; export type UUID = string; /** ## `uuid` : 通过密码学安全的随机数生成器生成[第四版 UUID ](https://datatracker.ietf.org/doc/html/rfc4122)*/ export declare function uuid(): UUID; /** ## `is_uuid` : 判断字符串是否是 UUID */ export declare function is_uuid(str: string): str is UUID; //# sourceMappingURL=uid.d.ts.map