• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkUI
19 */
20
21/**
22 * Provides the method of switching the cursor position.
23 *
24 * @extends TextContentControllerBase
25 * @since 8
26 */
27/**
28 * Provides the method of switching the cursor position.
29 *
30 * @extends TextContentControllerBase
31 * @syscap SystemCapability.ArkUI.ArkUI.Full
32 * @crossplatform
33 * @since 10
34 */
35/**
36 * Provides the method of switching the cursor position.
37 *
38 * @extends TextContentControllerBase
39 * @syscap SystemCapability.ArkUI.ArkUI.Full
40 * @crossplatform
41 * @atomicservice
42 * @since 11
43 */
44declare class TextAreaController extends TextContentControllerBase {
45  /**
46   * constructor.
47   *
48   * @syscap SystemCapability.ArkUI.ArkUI.Full
49   * @since 8
50   */
51  /**
52   * constructor.
53   *
54   * @syscap SystemCapability.ArkUI.ArkUI.Full
55   * @crossplatform
56   * @since 10
57   */
58  /**
59   * constructor.
60   *
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @crossplatform
63   * @atomicservice
64   * @since 11
65   */
66  constructor();
67
68  /**
69   * Called when the position of the insertion cursor is set.
70   *
71   * @param { number } value
72   * @syscap SystemCapability.ArkUI.ArkUI.Full
73   * @since 8
74   */
75  /**
76   * Called when the position of the insertion cursor is set.
77   *
78   * @param { number } value
79   * @syscap SystemCapability.ArkUI.ArkUI.Full
80   * @crossplatform
81   * @since 10
82   */
83  /**
84   * Called when the position of the insertion cursor is set.
85   *
86   * @param { number } value
87   * @syscap SystemCapability.ArkUI.ArkUI.Full
88   * @crossplatform
89   * @atomicservice
90   * @since 11
91   */
92  caretPosition(value: number): void;
93
94  /**
95   * Text selection is achieved by specifying the start and end positions of the text.
96   *
97   * @param { number } selectionStart - The start position of the selected text.
98   * @param { number } selectionEnd - The end position of the selected text.
99   * @syscap SystemCapability.ArkUI.ArkUI.Full
100   * @crossplatform
101   * @since 10
102   */
103  /**
104   * Text selection is achieved by specifying the start and end positions of the text.
105   *
106   * @param { number } selectionStart - The start position of the selected text.
107   * @param { number } selectionEnd - The end position of the selected text.
108   * @syscap SystemCapability.ArkUI.ArkUI.Full
109   * @crossplatform
110   * @atomicservice
111   * @since 11
112   */
113  /**
114   * Text selection is achieved by specifying the start and end positions of the text.
115   *
116   * @param { number } selectionStart - The start position of the selected text.
117   * @param { number } selectionEnd - The end position of the selected text.
118   * @param { SelectionOptions } [options] - Indicates the options of the text selection.
119   * @syscap SystemCapability.ArkUI.ArkUI.Full
120   * @crossplatform
121   * @atomicservice
122   * @since 12
123   */
124  setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void;
125
126  /**
127   * Exit edit state.
128   *
129   * @syscap SystemCapability.ArkUI.ArkUI.Full
130   * @crossplatform
131   * @since 10
132   */
133  /**
134   * Exit edit state.
135   *
136   * @syscap SystemCapability.ArkUI.ArkUI.Full
137   * @crossplatform
138   * @atomicservice
139   * @since 11
140   */
141  stopEditing(): void;
142}
143
144/**
145 * Defines the options of TextArea.
146 *
147 * @interface TextAreaOptions
148 * @syscap SystemCapability.ArkUI.ArkUI.Full
149 * @since 7
150 */
151/**
152 * Defines the options of TextArea.
153 *
154 * @interface TextAreaOptions
155 * @syscap SystemCapability.ArkUI.ArkUI.Full
156 * @crossplatform
157 * @since 10
158 */
159/**
160 * Defines the options of TextArea.
161 *
162 * @interface TextAreaOptions
163 * @syscap SystemCapability.ArkUI.ArkUI.Full
164 * @crossplatform
165 * @atomicservice
166 * @since 11
167 */
168declare interface TextAreaOptions {
169  /**
170   * The place holder text string.
171   *
172   * @type { ?ResourceStr }
173   * @syscap SystemCapability.ArkUI.ArkUI.Full
174   * @since 7
175   */
176  /**
177   * The place holder text string.
178   *
179   * @type { ?ResourceStr }
180   * @syscap SystemCapability.ArkUI.ArkUI.Full
181   * @crossplatform
182   * @since 10
183   */
184  /**
185   * The place holder text string.
186   *
187   * @type { ?ResourceStr }
188   * @syscap SystemCapability.ArkUI.ArkUI.Full
189   * @crossplatform
190   * @atomicservice
191   * @since 11
192   */
193  placeholder?: ResourceStr;
194
195  /**
196   * Sets the current value of TextArea.
197   *
198   * @type { ?ResourceStr }
199   * @syscap SystemCapability.ArkUI.ArkUI.Full
200   * @since 7
201   */
202  /**
203   * Sets the current value of TextArea.
204   *
205   * @type { ?ResourceStr }
206   * @syscap SystemCapability.ArkUI.ArkUI.Full
207   * @crossplatform
208   * @since 10
209   */
210  /**
211   * Sets the current value of TextArea.
212   *
213   * @type { ?ResourceStr }
214   * @syscap SystemCapability.ArkUI.ArkUI.Full
215   * @crossplatform
216   * @atomicservice
217   * @since 11
218   */
219  text?: ResourceStr;
220
221  /**
222   * Called when the position of the insertion cursor is set.
223   *
224   * @type { ?TextAreaController }
225   * @syscap SystemCapability.ArkUI.ArkUI.Full
226   * @since 8
227   */
228  /**
229   * Called when the position of the insertion cursor is set.
230   *
231   * @type { ?TextAreaController }
232   * @syscap SystemCapability.ArkUI.ArkUI.Full
233   * @crossplatform
234   * @since 10
235   */
236  /**
237   * Called when the position of the insertion cursor is set.
238   *
239   * @type { ?TextAreaController }
240   * @syscap SystemCapability.ArkUI.ArkUI.Full
241   * @crossplatform
242   * @atomicservice
243   * @since 11
244   */
245  controller?: TextAreaController;
246}
247
248/**
249 * Provides an interface for the multi-line text input component.
250 *
251 * @interface TextAreaInterface
252 * @syscap SystemCapability.ArkUI.ArkUI.Full
253 * @since 7
254 */
255/**
256 * Provides an interface for the multi-line text input component.
257 *
258 * @interface TextAreaInterface
259 * @syscap SystemCapability.ArkUI.ArkUI.Full
260 * @crossplatform
261 * @since 10
262 */
263/**
264 * Provides an interface for the multi-line text input component.
265 *
266 * @interface TextAreaInterface
267 * @syscap SystemCapability.ArkUI.ArkUI.Full
268 * @crossplatform
269 * @atomicservice
270 * @since 11
271 */
272interface TextAreaInterface {
273  /**
274   * Called when writing multiple lines of text.
275   *
276   * @param { TextAreaOptions } value
277   * @returns { TextAreaAttribute }
278   * @syscap SystemCapability.ArkUI.ArkUI.Full
279   * @since 7
280   */
281  /**
282   * Called when writing multiple lines of text.
283   *
284   * @param { TextAreaOptions } value
285   * @returns { TextAreaAttribute }
286   * @syscap SystemCapability.ArkUI.ArkUI.Full
287   * @crossplatform
288   * @since 10
289   */
290  /**
291   * Called when writing multiple lines of text.
292   *
293   * @param { TextAreaOptions } value
294   * @returns { TextAreaAttribute }
295   * @syscap SystemCapability.ArkUI.ArkUI.Full
296   * @crossplatform
297   * @atomicservice
298   * @since 11
299   */
300  (value?: TextAreaOptions): TextAreaAttribute;
301}
302
303/**
304 * Declare the type of input box
305 *
306 * @enum { number }
307 * @syscap SystemCapability.ArkUI.ArkUI.Full
308 * @crossplatform
309 * @since 11
310 */
311/**
312 * Declare the type of input box
313 *
314 * @enum { number }
315 * @syscap SystemCapability.ArkUI.ArkUI.Full
316 * @crossplatform
317 * @atomicservice
318 * @since 12
319 */
320declare enum TextAreaType {
321  /**
322   * Basic input mode.
323   *
324   * @syscap SystemCapability.ArkUI.ArkUI.Full
325   * @crossplatform
326   * @since 11
327   */
328  /**
329   * Basic input mode.
330   *
331   * @syscap SystemCapability.ArkUI.ArkUI.Full
332   * @crossplatform
333   * @atomicservice
334   * @since 12
335   */
336  NORMAL = 0,
337
338  /**
339   * Pure digital input mode.
340   *
341   * @syscap SystemCapability.ArkUI.ArkUI.Full
342   * @crossplatform
343   * @since 11
344   */
345  /**
346   * Pure digital input mode.
347   *
348   * @syscap SystemCapability.ArkUI.ArkUI.Full
349   * @crossplatform
350   * @atomicservice
351   * @since 12
352   */
353  NUMBER = 2,
354
355  /**
356   * Phone number entry mode.
357   *
358   * @syscap SystemCapability.ArkUI.ArkUI.Full
359   * @crossplatform
360   * @since 11
361   */
362  /**
363   * Phone number entry mode.
364   *
365   * @syscap SystemCapability.ArkUI.ArkUI.Full
366   * @crossplatform
367   * @atomicservice
368   * @since 12
369   */
370  PHONE_NUMBER = 3,
371
372  /**
373   * E-mail address input mode.
374   *
375   * @syscap SystemCapability.ArkUI.ArkUI.Full
376   * @crossplatform
377   * @since 11
378   */
379  /**
380   * E-mail address input mode.
381   *
382   * @syscap SystemCapability.ArkUI.ArkUI.Full
383   * @crossplatform
384   * @atomicservice
385   * @since 12
386   */
387  EMAIL = 5,
388
389  /**
390   * Number decimal entry mode.
391   *
392   * @syscap SystemCapability.ArkUI.ArkUI.Full
393   * @crossplatform
394   * @atomicservice
395   * @since 12
396   */
397  NUMBER_DECIMAL = 12,
398
399  /**
400   * URL entry mode.
401   *
402   * @syscap SystemCapability.ArkUI.ArkUI.Full
403   * @crossplatform
404   * @atomicservice
405   * @since 12
406   */
407  URL = 13,
408}
409
410/**
411 * Declare the event listener callback of the enter key.
412 *
413 * @typedef { function } TextAreaSubmitCallback
414 * @param { EnterKeyType } enterKeyType - The enter key type of soft keyboard.
415 * @param { SubmitEvent } [event] - Provides the method of keeping textArea editable state when submitted.
416 * @syscap SystemCapability.ArkUI.ArkUI.Full
417 * @crossplatform
418 * @atomicservice
419 * @since 14
420 */
421declare type TextAreaSubmitCallback = (enterKeyType: EnterKeyType, event?: SubmitEvent) => void;
422
423/**
424 * Defines the attribute functions of TextArea.
425 *
426 * @extends CommonMethod<TextAreaAttribute>
427 * @syscap SystemCapability.ArkUI.ArkUI.Full
428 * @since 7
429 */
430/**
431 * Defines the attribute functions of TextArea.
432 *
433 * @extends CommonMethod<TextAreaAttribute>
434 * @syscap SystemCapability.ArkUI.ArkUI.Full
435 * @crossplatform
436 * @since 10
437 */
438/**
439 * Defines the attribute functions of TextArea.
440 *
441 * @extends CommonMethod<TextAreaAttribute>
442 * @syscap SystemCapability.ArkUI.ArkUI.Full
443 * @crossplatform
444 * @atomicservice
445 * @since 11
446 */
447declare class TextAreaAttribute extends CommonMethod<TextAreaAttribute> {
448  /**
449   * Called when the color of the placeholder is set.
450   *
451   * @param { ResourceColor } value
452   * @returns { TextAreaAttribute }
453   * @syscap SystemCapability.ArkUI.ArkUI.Full
454   * @since 7
455   */
456  /**
457   * Called when the color of the placeholder is set.
458   *
459   * @param { ResourceColor } value
460   * @returns { TextAreaAttribute }
461   * @syscap SystemCapability.ArkUI.ArkUI.Full
462   * @crossplatform
463   * @since 10
464   */
465  /**
466   * Called when the color of the placeholder is set.
467   *
468   * @param { ResourceColor } value
469   * @returns { TextAreaAttribute }
470   * @syscap SystemCapability.ArkUI.ArkUI.Full
471   * @crossplatform
472   * @atomicservice
473   * @since 11
474   */
475  placeholderColor(value: ResourceColor): TextAreaAttribute;
476
477  /**
478   * Called when the font property of the placeholder is set.
479   *
480   * @param { Font } value
481   * @returns { TextAreaAttribute }
482   * @syscap SystemCapability.ArkUI.ArkUI.Full
483   * @since 7
484   */
485  /**
486   * Called when the font property of the placeholder is set.
487   *
488   * @param { Font } value
489   * @returns { TextAreaAttribute }
490   * @syscap SystemCapability.ArkUI.ArkUI.Full
491   * @crossplatform
492   * @since 10
493   */
494  /**
495   * Called when the font property of the placeholder is set.
496   *
497   * @param { Font } value
498   * @returns { TextAreaAttribute }
499   * @syscap SystemCapability.ArkUI.ArkUI.Full
500   * @crossplatform
501   * @atomicservice
502   * @since 11
503   */
504  placeholderFont(value: Font): TextAreaAttribute;
505
506  /**
507   * Called when the type of soft keyboard input button is set.
508   *
509   * @param { EnterKeyType } value the type of soft keyboard
510   * @returns { TextAreaAttribute }
511   * @syscap SystemCapability.ArkUI.ArkUI.Full
512   * @crossplatform
513   * @since 11
514   */
515  /**
516   * Called when the type of soft keyboard input button is set.
517   *
518   * @param { EnterKeyType } value the type of soft keyboard
519   * @returns { TextAreaAttribute }
520   * @syscap SystemCapability.ArkUI.ArkUI.Full
521   * @crossplatform
522   * @atomicservice
523   * @since 12
524   */
525  enterKeyType(value: EnterKeyType): TextAreaAttribute;
526
527  /**
528   * Called when the alignment of the contents of a multiline text box is set.
529   *
530   * @param { TextAlign } value
531   * @returns { TextAreaAttribute }
532   * @syscap SystemCapability.ArkUI.ArkUI.Full
533   * @since 7
534   */
535  /**
536   * Called when the alignment of the contents of a multiline text box is set.
537   *
538   * @param { TextAlign } value
539   * @returns { TextAreaAttribute }
540   * @syscap SystemCapability.ArkUI.ArkUI.Full
541   * @crossplatform
542   * @since 10
543   */
544  /**
545   * Called when the alignment of the contents of a multiline text box is set.
546   *
547   * @param { TextAlign } value
548   * @returns { TextAreaAttribute }
549   * @syscap SystemCapability.ArkUI.ArkUI.Full
550   * @crossplatform
551   * @atomicservice
552   * @since 11
553   */
554  textAlign(value: TextAlign): TextAreaAttribute;
555
556  /**
557   * Called when the insertion cursor color is set.
558   *
559   * @param { ResourceColor } value
560   * @returns { TextAreaAttribute }
561   * @syscap SystemCapability.ArkUI.ArkUI.Full
562   * @since 7
563   */
564  /**
565   * Called when the insertion cursor color is set.
566   *
567   * @param { ResourceColor } value
568   * @returns { TextAreaAttribute }
569   * @syscap SystemCapability.ArkUI.ArkUI.Full
570   * @crossplatform
571   * @since 10
572   */
573  /**
574   * Called when the insertion cursor color is set.
575   *
576   * @param { ResourceColor } value
577   * @returns { TextAreaAttribute }
578   * @syscap SystemCapability.ArkUI.ArkUI.Full
579   * @crossplatform
580   * @atomicservice
581   * @since 11
582   */
583  caretColor(value: ResourceColor): TextAreaAttribute;
584
585  /**
586   * Called when the font color is set.
587   *
588   * @param { ResourceColor } value
589   * @returns { TextAreaAttribute }
590   * @syscap SystemCapability.ArkUI.ArkUI.Full
591   * @since 7
592   */
593  /**
594   * Called when the font color is set.
595   *
596   * @param { ResourceColor } value
597   * @returns { TextAreaAttribute }
598   * @syscap SystemCapability.ArkUI.ArkUI.Full
599   * @crossplatform
600   * @since 10
601   */
602  /**
603   * Called when the font color is set.
604   *
605   * @param { ResourceColor } value
606   * @returns { TextAreaAttribute }
607   * @syscap SystemCapability.ArkUI.ArkUI.Full
608   * @crossplatform
609   * @atomicservice
610   * @since 11
611   */
612  fontColor(value: ResourceColor): TextAreaAttribute;
613
614  /**
615   * Called when the font size is set.
616   *
617   * @param { Length } value
618   * @returns { TextAreaAttribute }
619   * @syscap SystemCapability.ArkUI.ArkUI.Full
620   * @since 7
621   */
622  /**
623   * Called when the font size is set.
624   *
625   * @param { Length } value
626   * @returns { TextAreaAttribute }
627   * @syscap SystemCapability.ArkUI.ArkUI.Full
628   * @crossplatform
629   * @since 10
630   */
631  /**
632   * Called when the font size is set.
633   *
634   * @param { Length } value
635   * @returns { TextAreaAttribute }
636   * @syscap SystemCapability.ArkUI.ArkUI.Full
637   * @crossplatform
638   * @atomicservice
639   * @since 11
640   */
641  fontSize(value: Length): TextAreaAttribute;
642
643  /**
644   * Called when the font style of a font is set.
645   *
646   * @param { FontStyle } value
647   * @returns { TextAreaAttribute }
648   * @syscap SystemCapability.ArkUI.ArkUI.Full
649   * @since 7
650   */
651  /**
652   * Called when the font style of a font is set.
653   *
654   * @param { FontStyle } value
655   * @returns { TextAreaAttribute }
656   * @syscap SystemCapability.ArkUI.ArkUI.Full
657   * @crossplatform
658   * @since 10
659   */
660  /**
661   * Called when the font style of a font is set.
662   *
663   * @param { FontStyle } value
664   * @returns { TextAreaAttribute }
665   * @syscap SystemCapability.ArkUI.ArkUI.Full
666   * @crossplatform
667   * @atomicservice
668   * @since 11
669   */
670  fontStyle(value: FontStyle): TextAreaAttribute;
671
672  /**
673   * Called when the font weight is set.
674   *
675   * @param { number | FontWeight | string } value
676   * @returns { TextAreaAttribute }
677   * @syscap SystemCapability.ArkUI.ArkUI.Full
678   * @since 7
679   */
680  /**
681   * Called when the font weight is set.
682   *
683   * @param { number | FontWeight | string } value
684   * @returns { TextAreaAttribute }
685   * @syscap SystemCapability.ArkUI.ArkUI.Full
686   * @crossplatform
687   * @since 10
688   */
689  /**
690   * Called when the font weight is set.
691   *
692   * @param { number | FontWeight | string } value
693   * @returns { TextAreaAttribute }
694   * @syscap SystemCapability.ArkUI.ArkUI.Full
695   * @crossplatform
696   * @atomicservice
697   * @since 11
698   */
699  fontWeight(value: number | FontWeight | string): TextAreaAttribute;
700
701  /**
702   * Called when the font list of text is set.
703   *
704   * @param { ResourceStr } value
705   * @returns { TextAreaAttribute }
706   * @syscap SystemCapability.ArkUI.ArkUI.Full
707   * @since 7
708   */
709  /**
710   * Called when the font list of text is set.
711   *
712   * @param { ResourceStr } value
713   * @returns { TextAreaAttribute }
714   * @syscap SystemCapability.ArkUI.ArkUI.Full
715   * @crossplatform
716   * @since 10
717   */
718  /**
719   * Called when the font list of text is set.
720   *
721   * @param { ResourceStr } value
722   * @returns { TextAreaAttribute }
723   * @syscap SystemCapability.ArkUI.ArkUI.Full
724   * @crossplatform
725   * @atomicservice
726   * @since 11
727   */
728  fontFamily(value: ResourceStr): TextAreaAttribute;
729
730  /**
731   * Called when the overflow mode of the font is set.
732   *
733   * @param { TextOverflow } value
734   * @returns { TextAreaAttribute }
735   * @syscap SystemCapability.ArkUI.ArkUI.Full
736   * @crossplatform
737   * @atomicservice
738   * @since 12
739   */
740  textOverflow(value: TextOverflow): TextAreaAttribute;
741
742  /**
743   * Specify the indentation of the first line in a text-block.
744   *
745   * @param { Dimension } value - The length of text indent.
746   * @returns { TextAreaAttribute } The attribute of the text.
747   * @syscap SystemCapability.ArkUI.ArkUI.Full
748   * @crossplatform
749   * @atomicservice
750   * @since 12
751   */
752  textIndent(value: Dimension): TextAreaAttribute;
753
754  /**
755   * Called when the inputFilter of text is set.
756   *
757   * @param { ResourceStr } value
758   * @param { function } error
759   * @returns { TextAreaAttribute }
760   * @syscap SystemCapability.ArkUI.ArkUI.Full
761   * @since 8
762   */
763  /**
764   * Called when the inputFilter of text is set.
765   *
766   * @param { ResourceStr } value
767   * @param { function } error
768   * @returns { TextAreaAttribute }
769   * @syscap SystemCapability.ArkUI.ArkUI.Full
770   * @crossplatform
771   * @since 10
772   */
773  /**
774   * Called when the inputFilter of text is set.
775   *
776   * @param { ResourceStr } value
777   * @param { function } error
778   * @returns { TextAreaAttribute }
779   * @syscap SystemCapability.ArkUI.ArkUI.Full
780   * @crossplatform
781   * @atomicservice
782   * @since 11
783   */
784  inputFilter(value: ResourceStr, error?: (value: string) => void): TextAreaAttribute;
785
786  /**
787   * Define the caret style of the text input
788   *
789   * @param { CaretStyle } value
790   * @returns { TextAreaAttribute }
791   * @syscap SystemCapability.ArkUI.ArkUI.Full
792   * @crossplatform
793   * @atomicservice
794   * @since 12
795   */
796  caretStyle(value: CaretStyle): TextAreaAttribute;
797
798  /**
799   * Define the text selected background color of the text input.
800   *
801   * @param { ResourceColor } value
802   * @returns { TextAreaAttribute }
803   * @syscap SystemCapability.ArkUI.ArkUI.Full
804   * @crossplatform
805   * @atomicservice
806   * @since 12
807   */
808  selectedBackgroundColor(value: ResourceColor): TextAreaAttribute;
809
810  /**
811   * Called when submitted.
812   *
813   * @param { function } callback
814   * @returns { TextAreaAttribute }
815   * @syscap SystemCapability.ArkUI.ArkUI.Full
816   * @crossplatform
817   * @since 11
818   */
819  /**
820   * Called when submitted.
821   *
822   * @param { function } callback
823   * @returns { TextAreaAttribute }
824   * @syscap SystemCapability.ArkUI.ArkUI.Full
825   * @crossplatform
826   * @atomicservice
827   * @since 12
828   */
829  onSubmit(callback: (enterKey: EnterKeyType) => void): TextAreaAttribute;
830  /**
831   * Called when submitted.
832   *
833   * @param { TextAreaSubmitCallback } callback - callback of the listened event.
834   * @returns { TextAreaAttribute }
835   * @syscap SystemCapability.ArkUI.ArkUI.Full
836   * @crossplatform
837   * @atomicservice
838   * @since 14
839   */
840  onSubmit(callback: TextAreaSubmitCallback): TextAreaAttribute;
841
842  /**
843   * Called when the input changes.
844   *
845   * @param { function } callback
846   * @returns { TextAreaAttribute }
847   * @syscap SystemCapability.ArkUI.ArkUI.Full
848   * @since 7
849   */
850  /**
851   * Called when the input changes.
852   *
853   * @param { function } callback
854   * @returns { TextAreaAttribute }
855   * @syscap SystemCapability.ArkUI.ArkUI.Full
856   * @crossplatform
857   * @since 10
858   */
859  /**
860   * Called when the input changes.
861   *
862   * @param { function } callback
863   * @returns { TextAreaAttribute }
864   * @syscap SystemCapability.ArkUI.ArkUI.Full
865   * @crossplatform
866   * @atomicservice
867   * @since 11
868   */
869  /**
870   * Called when the input changes.
871   *
872   * @param { EditableTextOnChangeCallback } callback
873   * @returns { TextAreaAttribute }
874   * @syscap SystemCapability.ArkUI.ArkUI.Full
875   * @crossplatform
876   * @atomicservice
877   * @since 12
878   */
879  onChange(callback: EditableTextOnChangeCallback): TextAreaAttribute;
880
881  /**
882   * Called when the text selection changes.
883   *
884   * @param { function } callback - callback of the listened event.
885   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
886   * @syscap SystemCapability.ArkUI.ArkUI.Full
887   * @crossplatform
888   * @since 10
889   */
890  /**
891   * Called when the text selection changes.
892   *
893   * @param { function } callback - callback of the listened event.
894   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
895   * @syscap SystemCapability.ArkUI.ArkUI.Full
896   * @crossplatform
897   * @atomicservice
898   * @since 11
899   */
900  onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAreaAttribute;
901
902  /**
903   * Called when the content scrolls.
904   *
905   * @param { function } callback - callback of the listened event.
906   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
907   * @syscap SystemCapability.ArkUI.ArkUI.Full
908   * @crossplatform
909   * @since 10
910   */
911  /**
912   * Called when the content scrolls.
913   *
914   * @param { function } callback - callback of the listened event.
915   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
916   * @syscap SystemCapability.ArkUI.ArkUI.Full
917   * @crossplatform
918   * @atomicservice
919   * @since 11
920   */
921  onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextAreaAttribute;
922
923  /**
924   * Called when judging whether the text editing change finished.
925   *
926   * @param { function } callback - Triggered when the text area status changes.
927   * If the value of isEditing is true, text area is in progress.
928   * @returns { TextAreaAttribute }
929   * @syscap SystemCapability.ArkUI.ArkUI.Full
930   * @crossplatform
931   * @since 10
932   */
933  /**
934   * Called when judging whether the text editing change finished.
935   *
936   * @param { function } callback - Triggered when the text area status changes.
937   * If the value of isEditing is true, text area is in progress.
938   * @returns { TextAreaAttribute }
939   * @syscap SystemCapability.ArkUI.ArkUI.Full
940   * @crossplatform
941   * @atomicservice
942   * @since 11
943   */
944  onEditChange(callback: (isEditing: boolean) => void): TextAreaAttribute;
945
946  /**
947   * Called when using the Clipboard menu
948   *
949   * @param { function } callback
950   * @returns { TextAreaAttribute }
951   * @syscap SystemCapability.ArkUI.ArkUI.Full
952   * @since 8
953   */
954  /**
955   * Called when using the Clipboard menu
956   *
957   * @param { function } callback
958   * @returns { TextAreaAttribute }
959   * @syscap SystemCapability.ArkUI.ArkUI.Full
960   * @crossplatform
961   * @since 10
962   */
963  /**
964   * Called when using the Clipboard menu
965   *
966   * @param { function } callback
967   * @returns { TextAreaAttribute }
968   * @syscap SystemCapability.ArkUI.ArkUI.Full
969   * @crossplatform
970   * @atomicservice
971   * @since 11
972   */
973  onCopy(callback: (value: string) => void): TextAreaAttribute;
974
975  /**
976   * Called when using the Clipboard menu
977   *
978   * @param { function } callback
979   * @returns { TextAreaAttribute }
980   * @syscap SystemCapability.ArkUI.ArkUI.Full
981   * @since 8
982   */
983  /**
984   * Called when using the Clipboard menu
985   *
986   * @param { function } callback
987   * @returns { TextAreaAttribute }
988   * @syscap SystemCapability.ArkUI.ArkUI.Full
989   * @crossplatform
990   * @since 10
991   */
992  /**
993   * Called when using the Clipboard menu
994   *
995   * @param { function } callback
996   * @returns { TextAreaAttribute }
997   * @syscap SystemCapability.ArkUI.ArkUI.Full
998   * @crossplatform
999   * @atomicservice
1000   * @since 11
1001   */
1002  onCut(callback: (value: string) => void): TextAreaAttribute;
1003
1004  /**
1005   * Called when using the Clipboard menu
1006   *
1007   * @param { function } callback
1008   * @returns { TextAreaAttribute }
1009   * @syscap SystemCapability.ArkUI.ArkUI.Full
1010   * @since 7
1011   */
1012  /**
1013   * Called when using the Clipboard menu
1014   *
1015   * @param { function } callback
1016   * @returns { TextAreaAttribute }
1017   * @syscap SystemCapability.ArkUI.ArkUI.Full
1018   * @crossplatform
1019   * @since 10
1020   */
1021  /**
1022   * Called when using the Clipboard menu
1023   *
1024   * @param { function } callback
1025   *          Executed when a paste operation is performed.
1026   *          { string } value - The text content to be pasted.
1027   *          { PasteEvent } event - The user-defined paste event.
1028   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1029   * @syscap SystemCapability.ArkUI.ArkUI.Full
1030   * @crossplatform
1031   * @atomicservice
1032   * @since 11
1033   */
1034  onPaste(callback: (value: string, event: PasteEvent) => void): TextAreaAttribute;
1035
1036  /**
1037   * Called when the copy option is set.
1038   *
1039   * @param { CopyOptions } value
1040   * @returns { TextAreaAttribute }
1041   * @syscap SystemCapability.ArkUI.ArkUI.Full
1042   * @since 9
1043   */
1044  /**
1045   * Called when the copy option is set.
1046   *
1047   * @param { CopyOptions } value
1048   * @returns { TextAreaAttribute }
1049   * @syscap SystemCapability.ArkUI.ArkUI.Full
1050   * @crossplatform
1051   * @since 10
1052   */
1053  /**
1054   * Called when the copy option is set.
1055   *
1056   * @param { CopyOptions } value
1057   * @returns { TextAreaAttribute }
1058   * @syscap SystemCapability.ArkUI.ArkUI.Full
1059   * @crossplatform
1060   * @atomicservice
1061   * @since 11
1062   */
1063  copyOption(value: CopyOptions): TextAreaAttribute;
1064
1065  /**
1066   * Sets whether request keyboard or not when on focus.
1067   *
1068   * @param { boolean } value
1069   * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute.
1070   * @syscap SystemCapability.ArkUI.ArkUI.Full
1071   * @crossplatform
1072   * @since 10
1073   */
1074  /**
1075   * Sets whether request keyboard or not when on focus.
1076   *
1077   * @param { boolean } value
1078   * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute.
1079   * @syscap SystemCapability.ArkUI.ArkUI.Full
1080   * @crossplatform
1081   * @atomicservice
1082   * @since 11
1083   */
1084  enableKeyboardOnFocus(value: boolean): TextAreaAttribute;
1085
1086  /**
1087   * Define the max length content of the text area.
1088   *
1089   * @param { number } value
1090   * @returns { TextAreaAttribute }
1091   * @syscap SystemCapability.ArkUI.ArkUI.Full
1092   * @since 10
1093   */
1094  /**
1095   * Define the max length content of the text area.
1096   *
1097   * @param { number } value
1098   * @returns { TextAreaAttribute }
1099   * @syscap SystemCapability.ArkUI.ArkUI.Full
1100   * @crossplatform
1101   * @atomicservice
1102   * @since 11
1103   */
1104  maxLength(value: number): TextAreaAttribute;
1105
1106  /**
1107   * Define show counter of the text area.
1108   *
1109   * @param { boolean } value
1110   * @returns { TextAreaAttribute }
1111   * @syscap SystemCapability.ArkUI.ArkUI.Full
1112   * @since 10
1113   */
1114  /**
1115   * Define show counter of the text area.
1116   *
1117   * @param { boolean } value - Set showcounter of the text area.
1118   * @param { InputCounterOptions } options - Set the percentage of counter.
1119   * @returns { TextAreaAttribute }
1120   * @syscap SystemCapability.ArkUI.ArkUI.Full
1121   * @crossplatform
1122   * @atomicservice
1123   * @since 11
1124   */
1125  showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute;
1126
1127  /**
1128   * Define style of the text area.
1129   *
1130   * @param { TextContentStyle } value
1131   * @returns { TextAreaAttribute }
1132   * @syscap SystemCapability.ArkUI.ArkUI.Full
1133   * @since 10
1134   */
1135  /**
1136   * Define style of the text area.
1137   *
1138   * @param { TextContentStyle } value
1139   * @returns { TextAreaAttribute }
1140   * @syscap SystemCapability.ArkUI.ArkUI.Full
1141   * @crossplatform
1142   * @atomicservice
1143   * @since 11
1144   */
1145  style(value: TextContentStyle): TextAreaAttribute;
1146
1147  /**
1148   * Define bar state of the text area.
1149   *
1150   * @param { BarState } value
1151   * @returns { TextAreaAttribute }
1152   * @syscap SystemCapability.ArkUI.ArkUI.Full
1153   * @since 10
1154   */
1155  /**
1156   * Define bar state of the text area.
1157   *
1158   * @param { BarState } value
1159   * @returns { TextAreaAttribute }
1160   * @syscap SystemCapability.ArkUI.ArkUI.Full
1161   * @atomicservice
1162   * @since 11
1163   */
1164  barState(value: BarState): TextAreaAttribute;
1165
1166  /**
1167   * Controls whether the selection menu pops up.
1168   *
1169   * @param { boolean } value
1170   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1171   * @syscap SystemCapability.ArkUI.ArkUI.Full
1172   * @crossplatform
1173   * @since 10
1174   */
1175  /**
1176   * Controls whether the selection menu pops up.
1177   *
1178   * @param { boolean } value
1179   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1180   * @syscap SystemCapability.ArkUI.ArkUI.Full
1181   * @crossplatform
1182   * @atomicservice
1183   * @since 11
1184   */
1185  selectionMenuHidden(value: boolean): TextAreaAttribute;
1186
1187  /**
1188   * Called when the minimum font size of the font is set.
1189   *
1190   * @param { number | string | Resource } value
1191   * @returns { TextAreaAttribute }
1192   * @syscap SystemCapability.ArkUI.ArkUI.Full
1193   * @crossplatform
1194   * @atomicservice
1195   * @since 12
1196   */
1197  minFontSize(value: number | string | Resource): TextAreaAttribute;
1198
1199  /**
1200   * Called when the maximum font size of the font is set.
1201   *
1202   * @param { number | string | Resource } value
1203   * @returns { TextAreaAttribute }
1204   * @syscap SystemCapability.ArkUI.ArkUI.Full
1205   * @crossplatform
1206   * @atomicservice
1207   * @since 12
1208   */
1209  maxFontSize(value: number | string | Resource): TextAreaAttribute;
1210
1211  /**
1212   * Called when the minimum font scale of the font is set.
1213   *
1214   * @param { Optional<number | Resource> } scale
1215   * @returns { TextAreaAttribute }
1216   * @syscap SystemCapability.ArkUI.ArkUI.Full
1217   * @atomicservice
1218   * @since 18
1219   */
1220  minFontScale(scale: Optional<number | Resource>): TextAreaAttribute;
1221
1222  /**
1223   * Called when the maximum font scale of the font is set.
1224   *
1225   * @param { Optional<number | Resource> } scale
1226   * @returns { TextAreaAttribute }
1227   * @syscap SystemCapability.ArkUI.ArkUI.Full
1228   * @atomicservice
1229   * @since 18
1230   */
1231  maxFontScale(scale: Optional<number | Resource>): TextAreaAttribute;
1232
1233  /**
1234   * Called when the height adaptive policy is set.
1235   *
1236   * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.
1237   * @returns { TextAreaAttribute }
1238   * @syscap SystemCapability.ArkUI.ArkUI.Full
1239   * @crossplatform
1240   * @atomicservice
1241   * @since 12
1242   */
1243  heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAreaAttribute;
1244
1245  /**
1246   * Define max lines of the text area.
1247   *
1248   * @param { number } value
1249   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1250   * @syscap SystemCapability.ArkUI.ArkUI.Full
1251   * @since 10
1252   */
1253  /**
1254   * Define max lines of the text area.
1255   *
1256   * @param { number } value
1257   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1258   * @syscap SystemCapability.ArkUI.ArkUI.Full
1259   * @crossplatform
1260   * @atomicservice
1261   * @since 11
1262   */
1263  maxLines(value: number): TextAreaAttribute;
1264
1265  /**
1266   * Set the word break type.
1267   *
1268   * @param { WordBreak } value - The word break type.
1269   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1270   * @syscap SystemCapability.ArkUI.ArkUI.Full
1271   * @crossplatform
1272   * @atomicservice
1273   * @since 12
1274   */
1275  wordBreak(value: WordBreak): TextAreaAttribute;
1276
1277  /**
1278   * Set the text line break strategy type.
1279   *
1280   * @param { LineBreakStrategy } strategy - The text line break strategy type.
1281   * @returns { TextAreaAttribute } The attribute of the TextAreaAttribute.
1282   * @syscap SystemCapability.ArkUI.ArkUI.Full
1283   * @crossplatform
1284   * @atomicservice
1285   * @since 12
1286   */
1287  lineBreakStrategy(strategy: LineBreakStrategy): TextAreaAttribute;
1288
1289  /**
1290   * Define custom keyboard of the text area.
1291   *
1292   * @param { CustomBuilder } value
1293   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1294   * @syscap SystemCapability.ArkUI.ArkUI.Full
1295   * @since 10
1296   */
1297  /**
1298   * Define custom keyboard of the text area.
1299   *
1300   * @param { CustomBuilder } value
1301   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1302   * @syscap SystemCapability.ArkUI.ArkUI.Full
1303   * @crossplatform
1304   * @atomicservice
1305   * @since 11
1306   */
1307  /**
1308   * Define custom keyboard of the text area.
1309   *
1310   * @param { CustomBuilder } value - Set up a custom keyboard of TextArea
1311   * @param { KeyboardOptions } [options] - Indicates the custom keyboard options of TextArea
1312   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1313   * @syscap SystemCapability.ArkUI.ArkUI.Full
1314   * @crossplatform
1315   * @atomicservice
1316   * @since 12
1317   */
1318  customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextAreaAttribute;
1319
1320  /**
1321   * Called when the text decoration of the text is set.
1322   *
1323   * @param { TextDecorationOptions } value
1324   * @returns { TextAreaAttribute }
1325   * @syscap SystemCapability.ArkUI.ArkUI.Full
1326   * @crossplatform
1327   * @atomicservice
1328   * @since 12
1329   */
1330  decoration(value: TextDecorationOptions): TextAreaAttribute;
1331
1332  /**
1333   * Called when the distance between text fonts is set.
1334   *
1335   * @param { number | string | Resource } value
1336   * @returns { TextAreaAttribute }
1337   * @syscap SystemCapability.ArkUI.ArkUI.Full
1338   * @crossplatform
1339   * @atomicservice
1340   * @since 12
1341   */
1342  letterSpacing(value: number | string | Resource): TextAreaAttribute;
1343
1344  /**
1345   * Set font line spacing.
1346   *
1347   * @param { LengthMetrics } value
1348   * @returns { TextAreaAttribute }
1349   * @syscap SystemCapability.ArkUI.ArkUI.Full
1350   * @crossplatform
1351   * @atomicservice
1352   * @since 12
1353   */
1354  lineSpacing(value: LengthMetrics): TextAreaAttribute;
1355
1356  /**
1357   * Called when the line height of the font is set.
1358   *
1359   * @param { number | string | Resource } value
1360   * @returns { TextAreaAttribute }
1361   * @syscap SystemCapability.ArkUI.ArkUI.Full
1362   * @crossplatform
1363   * @atomicservice
1364   * @since 12
1365   */
1366  lineHeight(value: number | string | Resource): TextAreaAttribute;
1367
1368  /**
1369   * Called when the input type is set.
1370   *
1371   * @param { TextAreaType } value
1372   * @returns { TextAreaAttribute }
1373   * @syscap SystemCapability.ArkUI.ArkUI.Full
1374   * @crossplatform
1375   * @since 11
1376   */
1377  /**
1378   * Called when the input type is set.
1379   *
1380   * @param { TextAreaType } value
1381   * @returns { TextAreaAttribute }
1382   * @syscap SystemCapability.ArkUI.ArkUI.Full
1383   * @crossplatform
1384   * @atomicservice
1385   * @since 12
1386   */
1387  type(value: TextAreaType): TextAreaAttribute;
1388
1389  /**
1390   * Sets whether enable auto fill or not.
1391   *
1392   * @param { boolean } value - Indicates the flag whether autofill is enabled.
1393   * @returns { TextAreaAttribute }
1394   * @syscap SystemCapability.ArkUI.ArkUI.Full
1395   * @atomicservice
1396   * @since 12
1397   */
1398  enableAutoFill(value: boolean): TextAreaAttribute;
1399
1400  /**
1401   * Called when the auto fill type is set.
1402   *
1403   * @param { ContentType } contentType - Indicates autofill type.
1404   * @returns { TextAreaAttribute }
1405   * @syscap SystemCapability.ArkUI.ArkUI.Full
1406   * @atomicservice
1407   * @since 12
1408   */
1409  contentType(contentType: ContentType): TextAreaAttribute;
1410
1411  /**
1412   * Set font feature.
1413   *
1414   * @param { string } value - The fontFeature.
1415   * normal | <feature-tag-value>,
1416   * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0
1417   * the values of <feature-tag-value> reference to doc of TextArea component
1418   * number of <feature-tag-value> can be single or multiple, and separated by comma ','.
1419   * @returns { TextAreaAttribute }
1420   * @syscap SystemCapability.ArkUI.ArkUI.Full
1421   * @crossplatform
1422   * @atomicservice
1423   * @since 12
1424   */
1425  fontFeature(value: string): TextAreaAttribute;
1426
1427  /**
1428   * Get text value information when about to input.
1429   *
1430   * @param { Callback<InsertValue, boolean> } callback - The triggered function when text content is about to insert.
1431   * @returns { TextAreaAttribute }
1432   * @syscap SystemCapability.ArkUI.ArkUI.Full
1433   * @crossplatform
1434   * @atomicservice
1435   * @since 12
1436   */
1437  onWillInsert(callback: Callback<InsertValue, boolean>): TextAreaAttribute;
1438
1439  /**
1440   * Get text value information when completed input.
1441   *
1442   * @param { Callback<InsertValue> } callback - The triggered function when text content has been inserted.
1443   * @returns { TextAreaAttribute }
1444   * @syscap SystemCapability.ArkUI.ArkUI.Full
1445   * @crossplatform
1446   * @atomicservice
1447   * @since 12
1448   */
1449  onDidInsert(callback: Callback<InsertValue>): TextAreaAttribute;
1450
1451  /**
1452   * Get text value information when about to delete.
1453   *
1454   * @param { Callback<DeleteValue, boolean> } callback - The triggered function when text content is about to delete.
1455   * @returns { TextAreaAttribute }
1456   * @syscap SystemCapability.ArkUI.ArkUI.Full
1457   * @crossplatform
1458   * @atomicservice
1459   * @since 12
1460   */
1461  onWillDelete(callback: Callback<DeleteValue, boolean>): TextAreaAttribute;
1462
1463  /**
1464   * Get text value information when the deletion has been completed
1465   *
1466   * @param { Callback<DeleteValue> } callback - The triggered function when text content has been deleted.
1467   * @returns { TextAreaAttribute }
1468   * @syscap SystemCapability.ArkUI.ArkUI.Full
1469   * @crossplatform
1470   * @atomicservice
1471   * @since 12
1472   */
1473  onDidDelete(callback: Callback<DeleteValue>): TextAreaAttribute;
1474
1475  /**
1476   * Set the custom text menu.
1477   *
1478   * @param { EditMenuOptions } editMenu - Customize text menu options.
1479   * @returns { TextAreaAttribute }
1480   * @syscap SystemCapability.ArkUI.ArkUI.Full
1481   * @crossplatform
1482   * @atomicservice
1483   * @since 12
1484   */
1485  editMenuOptions(editMenu: EditMenuOptions): TextAreaAttribute;
1486
1487  /**
1488   * Define the preview text mode of the text input.
1489   *
1490   * @param { boolean } enable - Indicates the preview text mode.
1491   * @returns { TextAreaAttribute }
1492   * @syscap SystemCapability.ArkUI.ArkUI.Full
1493   * @crossplatform
1494   * @atomicservice
1495   * @since 12
1496   */
1497  enablePreviewText(enable: boolean): TextAreaAttribute;
1498
1499  /**
1500   * Enable or disable haptic feedback.
1501   *
1502   * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.
1503   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1504   * @syscap SystemCapability.ArkUI.ArkUI.Full
1505   * @crossplatform
1506   * @atomicservice
1507   * @since 13
1508   */
1509  enableHapticFeedback(isEnabled: boolean): TextAreaAttribute;
1510
1511  /**
1512   * Set the text with half leading.
1513   *
1514   * @param { Optional<boolean> } halfLeading
1515   * @returns { TextAreaAttribute }
1516   * @syscap SystemCapability.ArkUI.ArkUI.Full
1517   * @crossplatform
1518   * @atomicservice
1519   * @since 18
1520   */
1521  halfLeading(halfLeading: Optional<boolean>): TextAreaAttribute;
1522
1523  /**
1524   * Set the ellipsis mode.
1525   *
1526   * @param { EllipsisMode } mode - The ellipsis mode.
1527   * @returns { TextAreaAttribute } The attribute of TextArea.
1528   * @syscap SystemCapability.ArkUI.ArkUI.Full
1529   * @crossplatform
1530   * @atomicservice
1531   * @since 18
1532   */
1533  ellipsisMode(mode: Optional<EllipsisMode>): TextAreaAttribute;
1534
1535  /**
1536   * Set whether stop backPressed callback event or not.
1537   *
1538   * @param { Optional<boolean> } isStopped - Default value is true, set false to trigger the latest callback event.
1539   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1540   * @syscap SystemCapability.ArkUI.ArkUI.Full
1541   * @atomicservice
1542   * @since 15
1543   */
1544  stopBackPress(isStopped: Optional<boolean>): TextAreaAttribute;
1545
1546  /**
1547   * Get text value information when about to change.
1548   *
1549   * @param { Callback<EditableTextChangeValue, boolean> } callback - The triggered function when text content is about to change.
1550   * @returns { TextAreaAttribute }
1551   * @syscap SystemCapability.ArkUI.ArkUI.Full
1552   * @crossplatform
1553   * @atomicservice
1554   * @since 15
1555   */
1556  onWillChange(callback: Callback<EditableTextChangeValue, boolean>): TextAreaAttribute;
1557
1558  /**
1559   * Set the keyboard appearance.
1560   *
1561   * @param { Optional<KeyboardAppearance> } appearance - Default value is KeyboardAppearance.NONE_IMMERSIVE
1562   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
1563   * @syscap SystemCapability.ArkUI.ArkUI.Full
1564   * @atomicservice
1565   * @since 15
1566   */
1567  keyboardAppearance(appearance: Optional<KeyboardAppearance>): TextAreaAttribute;
1568}
1569
1570/**
1571 * Defines TextArea Component.
1572 *
1573 * @syscap SystemCapability.ArkUI.ArkUI.Full
1574 * @since 7
1575 */
1576/**
1577 * Defines TextArea Component.
1578 *
1579 * @syscap SystemCapability.ArkUI.ArkUI.Full
1580 * @crossplatform
1581 * @since 10
1582 */
1583/**
1584 * Defines TextArea Component.
1585 *
1586 * @syscap SystemCapability.ArkUI.ArkUI.Full
1587 * @crossplatform
1588 * @atomicservice
1589 * @since 11
1590 */
1591declare const TextArea: TextAreaInterface;
1592
1593/**
1594 * Defines TextArea Component instance.
1595 *
1596 * @syscap SystemCapability.ArkUI.ArkUI.Full
1597 * @since 7
1598 */
1599/**
1600 * Defines TextArea Component instance.
1601 *
1602 * @syscap SystemCapability.ArkUI.ArkUI.Full
1603 * @crossplatform
1604 * @since 10
1605 */
1606/**
1607 * Defines TextArea Component instance.
1608 *
1609 * @syscap SystemCapability.ArkUI.ArkUI.Full
1610 * @crossplatform
1611 * @atomicservice
1612 * @since 11
1613 */
1614declare const TextAreaInstance: TextAreaAttribute;
1615