import { SchemaTypes } from '@vinejs/vine/types'; import { Field } from './field.js'; export default class Text extends Field { validator: SchemaTypes; protected $required: boolean; protected $regex?: RegExp; protected $minLength?: number; protected $maxLength?: number; placeholder(placeholder: string): this; minLength(length: number): this; maxLength(length: number): this; required(required?: boolean): this; regex(regex: RegExp): this; indexComponent(): string; formComponent(): string; $validator(): SchemaTypes; static make(this: new (name: string) => T, name: string): T; toJSON(): { type: "field" | "panel"; fieldComponent: string | undefined; indexComponent: string | undefined; detailComponent: string | undefined; attributes: Record; visibility: import("./field.js").FieldVisibility; sortable: boolean; name: string; label: string; initialValue: string | undefined; }; }