/** * Generates a random base64 string of approximately specified length. * * @param length - The approximate length of the base64 string. * @returns A random base64 string. * * @throws {Error} If length is NaN. * @throws {Error} If length is negative or not an integer. * * @example * // Generate base64 string * randomBase64(16); // 'a3F9kL2pQwX5tYzN' * * @example * // Generate base64 token * randomBase64(32); // 'bG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ=' * * @note Uses Math.random() for non-cryptographic randomness. * @note Actual length may vary slightly due to base64 encoding (4:3 ratio). * @note For cryptographic randomness, use generateRandomBytes from cryptoFunctions. * * @complexity Time: O(n), Space: O(n) where n is length */ export declare function randomBase64(length: number): string; //# sourceMappingURL=randomBase64.d.ts.map