import Event from '../../event/Event.cjs'; import ValidityState from '../../validity-state/ValidityState.cjs'; import IHTMLElement from '../html-element/IHTMLElement.cjs'; import IHTMLFormElement from '../html-form-element/IHTMLFormElement.cjs'; import HTMLInputElementSelectionModeEnum from '../html-input-element/HTMLInputElementSelectionModeEnum.cjs'; import IHTMLLabelElement from '../html-label-element/IHTMLLabelElement.cjs'; import INodeList from '../node/INodeList.cjs'; /** * HTML Text Area Element. * * Reference: * https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement. */ export default interface IHTMLTextAreaElement extends IHTMLElement { readonly type: string; readonly form: IHTMLFormElement; readonly validationMessage: string; readonly labels: INodeList; readonly validity: ValidityState; defaultValue: string; minLength: number; maxLength: number; name: string; placeholder: string; inputmode: string; cols: string; rows: string; autocomplete: string; readOnly: boolean; disabled: boolean; autofocus: boolean; required: boolean; value: string; selectionStart: number; selectionEnd: number; selectionDirection: string; textLength: number; oninput: (event: Event) => void | null; onselectionchange: (event: Event) => void | null; /** * Selects the text. */ select(): void; /** * Set selection range. * * @param start Start. * @param end End. * @param [direction="none"] Direction. */ setSelectionRange(start: number, end: number, direction: string): void; /** * Set range text. * * @param replacement Replacement. * @param [start] Start. * @param [end] End. * @param [direction] Direction. */ setRangeText(replacement: string, start: number, end: number, selectionMode?: HTMLInputElementSelectionModeEnum): void; /** * Checks validity. * * @returns "true" if the field is valid. */ checkValidity(): boolean; /** * Reports validity. * * @returns "true" if the field is valid. */ reportValidity(): boolean; /** * Sets validation message. * * @param message Message. */ setCustomValidity(message: string): void; /** * Clones a node. * * @override * @param [deep=false] "true" to clone deep. * @returns Cloned node. */ cloneNode(deep?: boolean): IHTMLTextAreaElement; } //# sourceMappingURL=IHTMLTextAreaElement.d.ts.map