/** * Generate a random id of designated length - using cryptographic secure random numbers, * so it is a bit slower than `randomId` * * @remarks * * This method differs from `crypto.randomUUID()` in the way that it can be of any specified length * and doesn't contain any "-". * The methods would be slightly slower than `randomId` since it is using `crypto.getRandomValues()`, * but it is a more secure method. * * @param length - The desired length of the id (minimum 2) * @returns A random generated id of a specified length * * @example * * ```ts * randomCryptoId(); // --> eg. 'efuc6f1n4xf' * randomCryptoId(20); // --> eg. '3vsmrbxlh9at0vhcsf1xh' * ``` */ export declare function randomCryptoId(length?: number): string; export default randomCryptoId;