/** * Generate a cryptographically secure random password * * Creates a password with: * - Mixed case letters (a-z, A-Z) * - Numbers (0-9) * - Special characters (!@#$%^&*) * - No ambiguous characters (0, O, l, 1, I) to prevent confusion * * The password is generated using cryptographically secure random number generation * (crypto.randomBytes) to ensure unpredictability. * * @param length - Password length (default: 16) * @returns Secure random password string * * @example * ```typescript * // Generate 16-character password (default) * const password = generateSecurePassword(); * // Example output: "Kx9#mP2$vN7@qR4!" * * // Generate 20-character password * const longPassword = generateSecurePassword(20); * ``` * * @throws {Error} If length is less than 8 or greater than 128 */ export declare function generateSecurePassword(length?: number): string; //# sourceMappingURL=password-generator.d.ts.map