import short from 'short-uuid';
const translator = short();
export function buildUUID() {
    return short.uuid();
}
export function buildSUUID() {
    return short.generate();
}
export function uuidToShort(uuid) {
    if (!uuid)
        return uuid;
    return translator.fromUUID(uuid);
}
export function shortToUUID(shortUUID) {
    if (!shortUUID)
        return shortUUID;
    return translator.toUUID(shortUUID);
}
export function isShortUUID(value) {
    if (!value)
        return false;
    return value.length === translator.maxLength;
}
//# sourceMappingURL=uuid.js.map