import * as uuid from 'uuid'; /** * timestamp UUID */ export declare const v1UUID: (>(options: uuid.V1Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V1Options | undefined) => string); /** * namespace UUID(MD5) */ export declare const v3UUID: (>(name: string | ArrayLike, namespace: string | ArrayLike, buffer: T, offset?: number | undefined) => T) & ((name: string | ArrayLike, namespace: string | ArrayLike) => string) & uuid.v3Static; /** * random UUID */ export declare const v4UUID: (>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string); /** * namespace UUID(SHA-1) */ export declare const v5UUID: (>(name: string | ArrayLike, namespace: string | ArrayLike, buffer: T, offset?: number | undefined) => T) & ((name: string | ArrayLike, namespace: string | ArrayLike) => string) & uuid.v5Static; export declare const isUUID: (str: string) => boolean; export declare const versionOfUUID: (str: string) => number; export declare const isUUIDv1: (str: string) => boolean; export declare const isUUIDv3: (str: string) => boolean; export declare const isUUIDv4: (str: string) => boolean; export declare const isUUIDv5: (str: string) => boolean; /** * generate v4 UUID through object URL API */ export declare const urlUUID: () => string; /** * 获取当前运行时唯一的字符串,可用于标识组件 * * @param prefix default to `mobius` * @param fingerPrint default to `cigaret` * @return A string that is unique to the current runtime */ export declare const makeUniqueString: (prefix?: string, fingerPrint?: string) => string; //# sourceMappingURL=unique.d.ts.map