/** * Generate a random number */ export declare function generateNumber(length: number): number; /** * Generate a random number within an inclusive range. */ export declare function generateNumberBetween(from: number, to: number): number; /** * Generate a Version 4 UUID (cryptographically random) */ export declare function generateUuid4(): string; export declare const generateUuid: typeof generateUuid4; /** * Generate a Version 7 UUID encoding a Unix timestamp in the first 6 bytes and filling the rest with random bytes. */ export declare function generateUuid7(): string; /** * Decode a UUIDv7 string into a timestamp */ export declare function decodeUuid7(uuid: string): string; /** * Encodes a standard UUID (with dashes) into a URL-safe Base64 variant */ export declare function generateShortUuid(uuid: string): string; /** * Decodes a short URL-safe Base64-encoded string back into a standard UUID */ export declare function decodeShortUuid(shortUuid: string): string; /** * Generate a unique short ID based on the current timestamp */ export declare function generateShortId(length?: number): string; /** * Generate a random, secure password with a mix of character types and pleasant special characters. * @info Don't forget to use our Password Checker in the Goodies section */ export declare function generatePassword(options?: { length?: number; uppercase?: number; numbers?: number; number?: number; symbols?: number; special?: number; }): string; /** * Random number generator using cryptographic methods to avoid random(). */ export declare function generateRandomIndex(max: number): number; /** * Generate Lorem Ipsum text in various formats. */ export declare function generateLoremIpsum(count?: number, options?: { format: 'words' | 'sentences' | 'paragraphs'; }): string; /** * Helper function to get high-resolution time using process.hrtime, or performance.now as a fallback. * @info Node.js times generated are in nanoseconds, browser-based falls back to converting performance.now to microseconds. */ export declare function generateHighResolutionTime(): bigint; /** * Returns an array filled with cryptographic random bytes. */ export declare function getSecureRandomValues(buffer: Uint8Array): Uint8Array;