/** * ShortUuid is a class that can be used to encode and decode UUIDs to a shorter string representation. */ declare class ShortUuid { static readonly UUID_BITS = 128; /** * Create a ShortUuid * * @param caseSensitive whether the id can be case-sensitive (in this case use a larger base to encode the id) * @return ShortUuid encoded UUID */ static random(caseSensitive: boolean): string; /** * Encode UUID to ShortUuid * * @param uuid UUID to be encoded * @param caseSensitive whether the id can be case-sensitive (in this case use a larger base to encode the id) * @return ShortUuid encoded UUID */ static toShortUuid(uuid: string, caseSensitive: boolean): string; /** * Decode ShortUuid to UUID * * @param shortId encoded UUID * @param caseSensitive whether the id can be case-sensitive (in this case use a larger base to encode the id) * @return decoded UUID */ static toUuid(shortId: string, caseSensitive: boolean): string; /** * Try to shorten an identifier, if it is a UUID it will be converted to Base36. * Otherwise, all non-alphanumeric characters will be removed * * @param id An identifier to short * @param caseSensitive whether the id can be case-sensitive (in this case use a larger base to encode the id) * @return The shortened string */ static tryShorteningId(id: string, caseSensitive: boolean): string; } export default ShortUuid; //# sourceMappingURL=ShortUuid.d.ts.map