import { type PasswordPolicy, type PasswordRuleId } from '../password-policy.js'; import type { PasswordConfig } from '../types.js'; export declare const PBKDF2_ITERATIONS = 600000; export declare function hashPassword(password: string, config?: PasswordConfig): Promise; export interface PasswordVerifyResult { valid: boolean; needsRehash: boolean; } export declare function verifyPassword(password: string, hash: string): Promise; export declare function verifyPasswordWithMigration(password: string, hash: string, config?: PasswordConfig): Promise; /** English prose for one failed rule, measured against `policy`. */ export declare function passwordRuleMessage(rule: PasswordRuleId, policy: PasswordPolicy): string; export declare function validatePasswordStrength(password: string, config?: PasswordConfig): string[];