/**
 * DHIS2 Utils for UID generation
 */
/**
 * Generate a random text based on maximum characters
 * @param {*} max
 * @returns
 */
export declare const randomWithMax: (max: number) => number;
/**
 * Generate a valid DHIS2 uid. A valid DHIS2 uid is a 11 character string which starts with a letter from the ISO basic Latin alphabet.
 *
 * @return {string} A 11 character uid that always starts with a letter.
 *
 * @example
 * import { generateUid } from '@alkuip/core';
 *
 * generateUid();
 */
export declare const generateUid: () => string;
/**
 * Tests whether the given code is valid.
 *
 * @param {string} code The code to validate.
 * @return {boolean} Returns true if the code is valid, false otherwise.
 *
 * @example
 * import { isValidUid } from '@alkuip/core';
 *
 * isValidUid('JkWynlWMjJR'); // true
 * isValidUid('0kWynlWMjJR'); // false (Uid can not start with a number)
 * isValidUid('AkWy$lWMjJR'); // false (Uid can only contain alphanumeric characters.
 */
export declare const isValidUid: (code: string) => boolean;
