/** * Validator class - Static methods for username validation */ import type { ValidationResult } from './types.js'; /** * Static class for username validation operations */ export declare class Validator { /** * Validate a username and return detailed validation result */ static validate(username: string): ValidationResult; /** * Check if a username is safe (quick check, no detailed feedback) */ static isSafe(username: string): boolean; /** * Normalize a username by trimming and optionally lowercasing */ static normalize(username: string, lowercase?: boolean): string; /** * Sanitize a username by removing unsafe characters */ static sanitize(username: string): string; /** * Validate username against a specific regex pattern (from site config) */ static matchesPattern(username: string, pattern: string): boolean; }