/** * Input validators used by the UI to surface preview feedback before * the user hits the server. The Entropy Softworks application servers * enforce these same rules authoritatively (see `entropy-auth`'s * `password::policy` / `Validation`); these implementations are kept * deliberately strict to avoid false positives on the client. * * Email: a permissive `local@host.tld` shape — anything stricter risks * rejecting valid addresses, and the server validates anyway. * * Password: matches the default `entropy-auth` policy (≥8 chars, mixed * case, digit, symbol). Apps that opt their server into a different * policy can ignore the `valid` result and let the server be the source * of truth. * * Username: 3–30 chars, ASCII alnum + underscore. */ export interface PasswordValidation { valid: boolean; errors: string[]; } export interface UsernameValidation { valid: boolean; error?: string; } export declare function validateEmail(email: string): boolean; export declare function validatePassword(password: string): PasswordValidation; export declare function validateUsername(username: string): UsernameValidation; //# sourceMappingURL=validation.d.ts.map