export type CheckOption = { id: number; passed: boolean; name: "minLength" | "lowercase" | "uppercase" | "number" | "specialCharacter"; }; export type Strength = "tooWeak" | "weak" | "medium" | "strong"; export type ScoreOption = { score: 1 | 2 | 3 | 4 | 5; name: Strength; }; export type CheckOptionResult = { checkedRules: CheckOption["name"][]; value: ScoreOption["name"]; score: ScoreOption["score"]; length: number; }; export type CheckPasswordOptions = { minLength?: number; allowedSpecialChar?: string; };