import { Validator, type ValidityAndMessage } from "../utils/index.ts"; type State = { /** * The current value. */ readonly value: string; /** * Whether the textarea is required. */ readonly required: boolean; /** * The minimum length of the value. */ readonly minLength: number; /** * The maximum length of the value. */ readonly maxLength: number; }; export type TextAreaState = { /** * The state to validate. */ state: State; /** * The `