/** * Generates an ID from a string using the SHA-1 algorithm. Given the same input, the ID will always be the same. * * @param str - Input string * @param length - Length of returned hash. The maximum length of the hash is 40 characters. The default length is 16. * @returns First `length` characters of the SHA-1 hash of `str`. */ export declare function generateId(str: string, length?: number): Promise; /** * Generates a random ID. * * @param length - Length of returned hash. The maximum length of the hash is 40 characters. * @returns First `length` characters of the SHA-1 hash of a random UUID. */ export declare function generateRandomId(length?: number): Promise; /** * Generates a checksum of a JSON object. * * @param obj - JSON object. * @param length - Length of returned hash. The maximum length of the hash is 40 characters. * @returns First `length` characters of the SHA-1 hash of sorted and serialized version of `obj`. */ export declare function generateChecksum(obj: unknown, length?: number): Promise;