import { type CSSResultGroup, type TemplateResult } from "lit";
import BaseTextInput from "../base-text-input/index.ts";
import { createValidator, type Validator } from "../utils/index.ts";
/**
* @summary An input that enables user to type in text information.
*
* @tag tapsi-text-field
*/
export declare class TextField extends BaseTextInput {
/** @internal */
static readonly styles: CSSResultGroup;
/**
* The `` type to use. The type greatly changes how
* the text field behaves.
*
* Text fields support a limited number of `` types:
*
* - text
* - email
* - number
* - password
* - search
* - tel
* - url
*
* See
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
* for more details on each input type.
*
* @prop {string} type
* @attr {string} type
* @default "text"
*/
type: "email" | "number" | "password" | "search" | "tel" | "text" | "url";
/**
* Defines the greatest value in the range of permitted values.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
*
* @prop {string} max
* @attr {string} max
* @default ""
*/
max: string;
/**
* Defines the most negative value in the range of permitted values.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
*
* @prop {string} min
* @attr {string} min
* @default ""
*/
min: string;
/**
* A regular expression that the text field's value must match to pass
* constraint validation.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
*
* @prop {string} pattern
* @attr {string} pattern
* @default ""
*/
pattern: string;
/**
* Indicates that input accepts multiple email addresses.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
*
* @prop {boolean} multiple
* @attr {string} multiple
* @default false
*/
multiple: boolean;
/**
* Returns or sets the element's step attribute, which works with min and max
* to limit the increments at which a numeric or date-time value can be set.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
*
* @prop {string} step
* @attr {string} step
* @default ""
*/
step: string;
/**
* Hints at the type of data that might be entered by the user while editing
* the element or its contents. This allows a browser to display an
* appropriate virtual keyboard.
*
* https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
*
* @prop {string} inputMode
* @attr {string} inputMode
* @default ""
*/
inputMode: string;
/**
* The text field's value as a number.
*
* @returns {number}
*/
get valueAsNumber(): number;
set valueAsNumber(value: number);
/**
* The text field's value as a Date.
*/
get valueAsDate(): Date | null;
set valueAsDate(value: Date | null);
/**
* Decrements the value of a numeric type text field by `step` or `n` `step`
* number of times.
*
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown
*
* @param stepDecrement The number of steps to decrement.
*/
stepDown(stepDecrement?: number): void;
/**
* Increments the value of a numeric type text field by `step` or `n` `step`
* number of times.
*
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp
*
* @param stepIncrement The number of steps to increment.
*/
stepUp(stepIncrement?: number): void;
/** @internal */
[createValidator](): Validator;
protected renderInput(): TemplateResult;
}