import type * as Pinnacle from "../index.js"; /** * Single-line text input with optional length bounds and regex pattern. */ export interface TextField extends Pinnacle.FieldBase { /** Ghost text shown inside the input while it's empty. */ placeholder?: string; /** Regex the value must match. Validated server-side with RE2, so patterns that enable catastrophic backtracking (backreferences, lookarounds) are rejected at form creation. */ pattern?: string; /** Minimum number of characters the submitter must enter. */ min_length?: number; /** Maximum number of characters the submitter may enter. */ max_length?: number; }