UNPKG

@ked3/ktrace

Version:

跨平台埋点分析SDK

22 lines 611 B
/** * 生成极短唯一ID(8-16字符) * 基于62进制编码,结合时间戳、随机数和实例标识 */ export declare function generateUltraShortId(): string; /** * 获取会话ID */ export declare function getSessionId(): string; /** * 简单哈希函数,用于生成设备ID */ export declare function simpleHash(str: string): string; /** * 获取设备ID,兼容electron和web环境 */ export declare function getDeviceId(): string; /** * 格式化日期为 yyyy-MM-dd HH:mm:ss 格式 */ export declare function formatDateTime(date: Date): string; //# sourceMappingURL=index.d.ts.map