• 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 * Defining Component ClassDecorator
18 * @since 7
19 */
20/**
21 * Defining Component ClassDecorator
22 * @form
23 * @since 9
24 */
25declare const Component: ClassDecorator;
26
27/**
28 * Defines Entry ClassDecorator.
29 * @returns { ClassDecorator } Entry is a ClassDecorator.
30 * @since 7
31 */
32/**
33 * Defines Entry ClassDecorator.
34 * @returns { ClassDecorator & ((storage?: LocalStorage) => ClassDecorator) }
35 * Entry is a ClassDecorator and it supports LocalStorage as parameters.
36 * @form
37 * @since 9
38 */
39declare const Entry: ClassDecorator & ((storage?: LocalStorage) => ClassDecorator);
40
41/**
42 * Defining Observed ClassDecorator.
43 * @since 7
44 */
45/**
46 * Defining Observed ClassDecorator.
47 * @form
48 * @since 9
49 */
50declare const Observed: ClassDecorator;
51
52/**
53 * Defining Preview ClassDecorator.
54 * @since 7
55 */
56/**
57 * Defining Preview ClassDecorator.
58 * @form
59 * @since 9
60 */
61declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
62
63/**
64 * Defining BuilderParam PropertyDecorator
65 * @since 7
66 */
67/**
68 * Defining BuilderParam PropertyDecorator
69 * @form
70 * @since 9
71 */
72declare const BuilderParam: PropertyDecorator;
73
74/**
75 * Defining State PropertyDecorator.
76 * @since 7
77 */
78/**
79 * Defining State PropertyDecorator.
80 * @form
81 * @since 9
82 */
83declare const State: PropertyDecorator;
84
85/**
86 * Defining Prop PropertyDecorator.
87 * @since 7
88 */
89/**
90 * Defining Prop PropertyDecorator.
91 * @form
92 * @since 9
93 */
94declare const Prop: PropertyDecorator;
95
96/**
97 * Defining Link PropertyDecorator.
98 * @since 7
99 */
100/**
101 * Defining Link PropertyDecorator.
102 * @form
103 * @since 9
104 */
105declare const Link: PropertyDecorator;
106
107/**
108 * Defining ObjectLink PropertyDecorator.
109 * @since 7
110 */
111/**
112 * Defining ObjectLink PropertyDecorator.
113 * @form
114 * @since 9
115 */
116declare const ObjectLink: PropertyDecorator;
117
118/**
119 * Defining Provide PropertyDecorator.
120 * @since 7
121 */
122/**
123 * Defining Provide PropertyDecorator.
124 * @form
125 * @since 9
126 */
127declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
128
129/**
130 * Defining Consume PropertyDecorator.
131 * @since 7
132 */
133/**
134 * Defining Consume PropertyDecorator.
135 * @form
136 * @since 9
137 */
138declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
139
140/**
141 * Defining StorageProp PropertyDecorator.
142 * @since 7
143 */
144declare const StorageProp: (value: string) => PropertyDecorator;
145
146/**
147 * Defining StorageLink PropertyDecorator.
148 * @since 7
149 */
150declare const StorageLink: (value: string) => PropertyDecorator;
151
152/**
153 * Defining Watch PropertyDecorator.
154 * @since 7
155 */
156/**
157 * Defining Watch PropertyDecorator.
158 * @form
159 * @since 9
160 */
161declare const Watch: (value: string) => PropertyDecorator;
162
163/**
164 * Defining Builder MethodDecorator
165 * @since 7
166 */
167/**
168 * Defining Builder MethodDecorator
169 * @form
170 * @since 9
171 */
172declare const Builder: MethodDecorator;
173
174/**
175 * Defining Styles MethodDecorator
176 * @since 8
177 */
178/**
179 * Defining Styles MethodDecorator
180 * @form
181 * @since 9
182 */
183declare const Styles: MethodDecorator;
184
185/**
186 * Defining Extend MethodDecorator
187 * @since 7
188 */
189/**
190 * Defining Extend MethodDecorator
191 * @form
192 * @since 9
193 */
194declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
195
196/**
197 * Defining Concurrent MethodDecorator
198 * @since 9
199 */
200declare const Concurrent: MethodDecorator;
201
202/**
203 * Defining  CustomDialog ClassDecorator
204 * @since 7
205 */
206declare const CustomDialog: ClassDecorator;
207
208/**
209 * Defining LocalStorageLink PropertyDecorator.
210 * @since 9
211 */
212declare const LocalStorageLink: (value: string) => PropertyDecorator;
213
214/**
215 * Defining LocalStorageProp PropertyDecorator
216 * @form
217 * @since 9
218 */
219declare const LocalStorageProp: (value: string) => PropertyDecorator;
220
221/**
222 * Obtains the Context object associated with a component on the page.
223 * @param { Object } component - indicates the component on the page.
224 * @StageModelOnly
225 * @since 9
226 */
227declare function getContext(component?: Object): Context;
228
229/**
230 * Get context.
231 * @StageModelOnly
232 * @since 9
233 */
234declare type Context = import('../api/application/Context').default;
235
236/**
237 * Post Card Action.
238 * @param { Object } component - indicate the card entry component.
239 * @param { Object } action - indicate the router or message event.
240 * @form
241 * @StageModelOnly
242 * @since 9
243 */
244 declare function postCardAction(component: Object, action: Object): void;
245
246/**
247 * Defines the data type of the interface restriction.
248 * @since 7
249 */
250/**
251 * Defines the data type of the interface restriction.
252 * @form
253 * @since 9
254 */
255declare interface Configuration {
256  /**
257   * Set colorMode.
258   * @since 7
259   */
260  /**
261   * Set colorMode.
262   * @form
263   * @since 9
264   */
265  readonly colorMode: string;
266
267  /**
268   * Set fontScale.
269   * @since 7
270   */
271  /**
272   * Set fontScale.
273   * @form
274   * @since 9
275   */
276  readonly fontScale: number;
277}
278
279/**
280 * Defines the data type of the interface restriction.
281 * @since 8
282 */
283/**
284 * Defines the data type of the interface restriction.
285 * @form
286 * @since 9
287 */
288declare interface Rectangle {
289  /**
290   * x:Horizontal coordinate
291   * @since 8
292   */
293  /**
294   * x:Horizontal coordinate
295   * @form
296   * @since 9
297   */
298  x?: Length;
299
300  /**
301   * y:Vertical axis coordinate.
302   * @since 8
303   */
304  /**
305   * y:Vertical axis coordinate.
306   * @form
307   * @since 9
308   */
309  y?: Length;
310
311  /**
312   * Sets the width of the current touchRect.
313   * @since 8
314   */
315  /**
316   * Sets the width of the current touchRect.
317   * @form
318   * @since 9
319   */
320  width?: Length;
321
322  /**
323   * Sets the height of the current touchRect.
324   * @since 8
325   */
326  /**
327   * Sets the height of the current touchRect.
328   * @form
329   * @since 9
330   */
331  height?: Length;
332}
333
334/**
335 * global $r function
336 * @since 7
337 */
338/**
339 * global $r function
340 * @form
341 * @since 9
342 */
343declare function $r(value: string, ...params: any[]): Resource;
344
345/**
346 * global $rawfile function
347 * @since 7
348 */
349/**
350 * global $rawfile function
351 * @form
352 * @since 9
353 */
354declare function $rawfile(value: string): Resource;
355
356/**
357 * Defines the animate function params.
358 * @since 7
359 */
360/**
361 * Defines the animate function params.
362 * @form
363 * @since 9
364 */
365declare interface AnimateParam {
366  /**
367   * Animation duration, in ms.
368   * @since 7
369   */
370  /**
371   * Animation duration, in ms.
372   * @form
373   * @since 9
374   */
375  duration?: number;
376  /**
377   * Animation playback speed. A larger value indicates faster animation playback, and a smaller value indicates slower
378   * animation playback. The value 0 means that there is no animation.
379   * @since 7
380   */
381  tempo?: number;
382  /**
383   * Animation curve.
384   * @type { string | Curve}
385   * @since 7
386   */
387  /**
388   * Animation curve.
389   * @type { string | Curve | ICurve}
390   * @form
391   * @since 9
392   */
393  curve?: Curve | string | ICurve;
394  /**
395   * Animation playback mode. By default, the animation is played from the beginning after the playback is complete.
396   * @since 7
397   */
398  delay?: number;
399  /**
400   * Animation playback mode. By default, the animation is played from the beginning after the playback is complete.
401   * @since 7
402   */
403  iterations?: number;
404  /**
405   * Animation playback mode. By default, the animation is played from the beginning after the playback is complete.
406   * @since 7
407   */
408  /**
409   * Animation playback mode. By default, the animation is played from the beginning after the playback is complete.
410   * @form
411   * @since 9
412   */
413  playMode?: PlayMode;
414  /**
415   * Callback invoked when the animation playback is complete.
416   * @since 7
417   */
418  /**
419   * Callback invoked when the animation playback is complete.
420   * @form
421   * @since 9
422   */
423  onFinish?: () => void;
424}
425
426/**
427 * Interface for curve object.
428 * @form
429 * @since 9
430 */
431interface ICurve {
432  /**
433   * Get curve value by fraction.
434   * @form
435   * @since 9
436   */
437  interpolate(fraction : number) : number;
438}
439
440/**
441 * Defines the motion path options.
442 * @since 7
443 */
444declare interface MotionPathOptions {
445  /**
446   * The path info.
447   * @since 7
448   */
449  path: string;
450  /**
451   * The origin point info.
452   * @since 7
453   */
454  from?: number;
455  /**
456   * The distance point info.
457   * @since 7
458   */
459  to?: number;
460  /**
461   * The rotate info.
462   * @since 7
463   */
464  rotatable?: boolean;
465}
466
467/**
468 * Defines the shard transition function params.
469 * @since 7
470 */
471declare interface sharedTransitionOptions {
472  /**
473   * Animation duration, in ms.
474   * @since 7
475   */
476  duration?: number;
477  /**
478   * Animation duration, in ms.
479   * @since 7
480   */
481  curve?: Curve | string;
482  /**
483   * Animation playback mode. By default, the animation is played from the beginning after the playback is complete.
484   * @since 7
485   */
486  delay?: number;
487  /**
488   * The motion path info.
489   * @since 7
490   */
491  motionPath?: MotionPathOptions;
492  /**
493   * Z index info.
494   * @since 7
495   */
496  zIndex?: number;
497  /**
498   * the animate type.
499   * @since 7
500   */
501  type?: SharedTransitionEffectType;
502}
503
504/**
505 * Defines the options of translate.
506 * @since 7
507 */
508/**
509 * Defines the options of translate.
510 * @form
511 * @since 9
512 */
513declare interface TranslateOptions {
514  /**
515   * The param of x direction.
516   * @since 7
517   */
518  /**
519   * The param of x direction.
520   * @form
521   * @since 9
522   */
523  x?: number | string;
524  /**
525   * The param of y direction.
526   * @since 7
527   */
528  /**
529   * The param of y direction.
530   * @form
531   * @since 9
532   */
533  y?: number | string;
534  /**
535   * The param of z direction.
536   * @since 7
537   */
538  /**
539   * The param of z direction.
540   * @form
541   * @since 9
542   */
543  z?: number | string;
544}
545
546/**
547 * Defines the options of scale.
548 * @since 7
549 */
550/**
551 * Defines the options of scale.
552 * @form
553 * @since 9
554 */
555declare interface ScaleOptions {
556  /**
557   * The param of x direction.
558   * @since 7
559   */
560  /**
561   * The param of x direction.
562   * @form
563   * @since 9
564   */
565  x?: number;
566  /**
567   * The param of y direction.
568   * @since 7
569   */
570  /**
571   * The param of y direction.
572   * @form
573   * @since 9
574   */
575  y?: number;
576  /**
577   * The param of z direction.
578   * @since 7
579   */
580  /**
581   * The param of z direction.
582   * @form
583   * @since 9
584   */
585  z?: number;
586  /**
587   * The param of center point of x.
588   * @since 7
589   */
590  /**
591   * The param of center point of x.
592   * @form
593   * @since 9
594   */
595  centerX?: number | string;
596  /**
597   * The param of center point of y.
598   * @since 7
599   */
600  /**
601   * The param of center point of y.
602   * @form
603   * @since 9
604   */
605  centerY?: number | string;
606}
607
608/**
609 * Defines the align rule options of relative container.
610 * @form
611 * @since 9
612 */
613declare interface AlignRuleOption {
614  /**
615   * The param of left align.
616   * @form
617   * @since 9
618   */
619  left?: { anchor: string, align: HorizontalAlign };
620  /**
621   * The param of right align.
622   * @form
623   * @since 9
624   */
625  right?: { anchor: string, align: HorizontalAlign };
626  /**
627   * The param of middle align.
628   * @form
629   * @since 9
630   */
631  middle?: { anchor: string, align: HorizontalAlign };
632  /**
633   * The param of top align.
634   * @form
635   * @since 9
636   */
637  top?: { anchor: string, align: VerticalAlign };
638  /**
639   * The param of bottom align.
640   * @form
641   * @since 9
642   */
643  bottom?: { anchor: string, align: VerticalAlign };
644  /**
645   * The param of center align.
646   * @form
647   * @since 9
648   */
649  center?: { anchor: string, align: VerticalAlign };
650}
651
652declare interface RotateOptions {
653  /**
654   * The param of x direction.
655   * @since 7
656   */
657  /**
658   * The param of x direction.
659   * @form
660   * @since 9
661   */
662  x?: number;
663  /**
664   * The param of y direction.
665   * @since 7
666   */
667  /**
668   * The param of y direction.
669   * @form
670   * @since 9
671   */
672  y?: number;
673  /**
674   * The param of z direction.
675   * @since 7
676   */
677  /**
678   * The param of z direction.
679   * @form
680   * @since 9
681   */
682  z?: number;
683  /**
684   * The param of center point of x.
685   * @since 7
686   */
687  /**
688   * The param of center point of x.
689   * @form
690   * @since 9
691   */
692  centerX?: number | string;
693  /**
694   * The param of center point of y.
695   * @since 7
696   */
697  /**
698   * The param of center point of y.
699   * @form
700   * @since 9
701   */
702  centerY?: number | string;
703  /**
704   * The param of angle.
705   * @since 7
706   */
707  /**
708   * The param of angle.
709   * @form
710   * @since 9
711   */
712  angle: number | string;
713}
714
715/**
716 * Defines the param of transition.
717 * @since 7
718 */
719/**
720 * Defines the param of transition.
721 * @form
722 * @since 9
723 */
724declare interface TransitionOptions {
725  /**
726   * Defines the param of type.
727   * @since 7
728   */
729  /**
730   * Defines the param of type.
731   * @form
732   * @since 9
733   */
734  type?: TransitionType;
735  /**
736   * Defines the param of opacity.
737   * @since 7
738   */
739  /**
740   * Defines the param of opacity.
741   * @form
742   * @since 9
743   */
744  opacity?: number;
745  /**
746   * Defines the param of translate.
747   * @since 7
748   */
749  /**
750   * Defines the param of translate.
751   * @form
752   * @since 9
753   */
754  translate?: TranslateOptions;
755  /**
756   * Defines the param of scale.
757   * @since 7
758   */
759  /**
760   * Defines the param of scale.
761   * @form
762   * @since 9
763   */
764  scale?: ScaleOptions;
765  /**
766   * Defines the param of rotate.
767   * @since 7
768   */
769  /**
770   * Defines the param of rotate.
771   * @form
772   * @since 9
773   */
774  rotate?: RotateOptions;
775}
776
777/**
778 * Define Preview property
779 * @form
780 * @since 9
781 */
782interface PreviewParams {
783  /**
784   * Define Preview title
785   * @form
786   * @since 9
787   */
788  title?: string;
789  /**
790   * Define Preview width
791   * @form
792   * @since 9
793   */
794  width?: number;
795  /**
796   * Define Preview height
797   * @form
798   * @since 9
799   */
800  height?: number;
801  /**
802   * Define Preview locale
803   * @form
804   * @since 9
805   */
806  locale?: string;
807  /**
808   * Define Preview colorMode
809   * @form
810   * @since 9
811   */
812  colorMode?: string;
813  /**
814   * Define Preview deviceType
815   * @form
816   * @since 9
817   */
818  deviceType?: string;
819  /**
820   * Define Preview dpi
821   * @form
822   * @since 9
823   */
824  dpi?: number;
825  /**
826   * Define Preview orientation
827   * @form
828   * @since 9
829   */
830  orientation?: string;
831  /**
832   * Define Preview roundScreen
833   * @form
834   * @since 9
835   */
836  roundScreen?: boolean;
837}
838
839/**
840 * ItemDragInfo object description
841 * @since 8
842 */
843declare interface ItemDragInfo {
844  /**
845   * Obtains the X coordinate of the drag window, in vp.
846   * @since 8
847   */
848  x: number;
849
850  /**
851   * Obtains the Y coordinate of the drag window, in vp.
852   * @since 8
853   */
854  y: number;
855}
856
857/**
858 * DragItemInfo object description
859 * @since 8
860 */
861declare interface DragItemInfo {
862  /**
863   * Uses the pixelMap object for drawing.
864   * @since 8
865   */
866  pixelMap?: PixelMap;
867
868  /**
869   * Uses the custom builder for drawing, if pixelMap is set, this value is ignored.
870   * @since 8
871   */
872  builder?: CustomBuilder;
873
874  /**
875   * Sets the extra info for drag event.
876   * @since 8
877   */
878  extraInfo?: string;
879}
880
881/**
882 * Defining animation function.
883 * @since 7
884 */
885/**
886 * Defining animation function.
887 * @form
888 * @since 9
889 */
890declare function animateTo(value: AnimateParam, event: () => void): void;
891
892/**
893 * Converts a value in vp units to a value in px.
894 * @since 7
895 */
896/**
897 * Converts a value in vp units to a value in px.
898 * @form
899 * @since 9
900 */
901declare function vp2px(value: number): number;
902
903/**
904 * Converts a number in units of px to a number in units of vp.
905 * @since 7
906 */
907/**
908 * Converts a number in units of px to a number in units of vp.
909 * @form
910 * @since 9
911 */
912declare function px2vp(value: number): number;
913
914/**
915 * Converts a number in fp units to a number in px.
916 * @since 7
917 */
918/**
919 * Converts a number in fp units to a number in px.
920 * @form
921 * @since 9
922 */
923declare function fp2px(value: number): number;
924
925/**
926 * Converts a number in units of px to a number in units of fp.
927 * @since 7
928 */
929/**
930 * Converts a number in units of px to a number in units of fp.
931 * @form
932 * @since 9
933 */
934declare function px2fp(value: number): number;
935
936/**
937 * Converts a number in units of lpx to a number in units of px.
938 * @since 7
939 */
940/**
941 * Converts a number in units of lpx to a number in units of px.
942 * @form
943 * @since 9
944 */
945declare function lpx2px(value: number): number;
946
947/**
948 * Converts a number in units of px to a number in units of lpx.
949 * @since 7
950 */
951/**
952 * Converts a number in units of px to a number in units of lpx.
953 * @form
954 * @since 9
955 */
956declare function px2lpx(value: number): number;
957
958declare namespace focusControl {
959  /**
960   * Request focus to the specific component by param: 'id/key'.
961   * @since 9
962   */
963  function requestFocus(value: string): boolean;
964}
965
966/**
967 * Defines the event target.
968 * @since 8
969 */
970/**
971 * Defines the event target.
972 * @form
973 * @since 9
974 */
975declare interface EventTarget {
976  /**
977   * Area of current target.
978   * @since 8
979   */
980  /**
981   * Area of current target.
982   * @form
983   * @since 9
984   */
985  area: Area;
986}
987
988/**
989 * Defines the event source type.
990 * @since 8
991 */
992declare enum SourceType {
993  /**
994   * Unknown type.
995   * @since 8
996   */
997  Unknown,
998
999  /**
1000   * The mouse type.
1001   * @since 8
1002   */
1003  Mouse,
1004
1005  /**
1006   * The touch screen type.
1007   * @since 8
1008   */
1009  TouchScreen,
1010}
1011
1012/**
1013 * Defines the event tool type.
1014 * @since 9
1015 */
1016declare enum SourceTool {
1017  /**
1018   * Unknown type.
1019   * @since 9
1020   */
1021  Unknown,
1022
1023  /**
1024   * The finger type.
1025   * @since 9
1026   */
1027  FINGER,
1028
1029  /**
1030   * The pen type.
1031   * @since 9
1032   */
1033  PEN,
1034}
1035
1036/**
1037 * Defines the Border Image Repeat Mode.
1038 * @form
1039 * @since 9
1040 */
1041declare enum RepeatMode {
1042  /**
1043   * Repeat mode.
1044   * @form
1045   * @since 9
1046   */
1047  Repeat,
1048
1049  /**
1050   * Stretch mode.
1051   * @form
1052   * @since 9
1053   */
1054  Stretch,
1055
1056  /**
1057   * Round mode.
1058   * @form
1059   * @since 9
1060   */
1061  Round,
1062
1063  /**
1064   * Space mode.
1065   * @form
1066   * @since 9
1067   */
1068  Space,
1069}
1070/**
1071 * enum Blur style
1072 * @form
1073 * @since 9
1074 * @systemapi
1075 */
1076 declare enum BlurStyle {
1077  /**
1078   * Defines the fuzzy scale.
1079   * @form
1080   * @since 9
1081   */
1082  Thin,
1083
1084  /**
1085   * Defines the fuzzy scale.
1086   * @form
1087   * @since 9
1088   */
1089  Regular,
1090
1091  /**
1092   * Defines the fuzzy scale.
1093   * @form
1094   * @since 9
1095   */
1096  Thick,
1097}
1098
1099/**
1100 * Defines the base event.
1101 * @since 8
1102 */
1103/**
1104 * Defines the base event.
1105 * @form
1106 * @since 9
1107 */
1108declare interface BaseEvent {
1109  /**
1110   * Defines the current target which fires this event.
1111   * @since 8
1112   */
1113  /**
1114   * Defines the current target which fires this event.
1115   * @form
1116   * @since 9
1117   */
1118  target: EventTarget;
1119
1120  /**
1121   * Event timestamp.
1122   * @since 8
1123   */
1124  /**
1125   * Event timestamp.
1126   * @form
1127   * @since 9
1128   */
1129  timestamp: number;
1130
1131  /**
1132   * the event source info.
1133   * @since 8
1134   */
1135  /**
1136   * the event source info.
1137   * @form
1138   * @since 9
1139   */
1140  source: SourceType;
1141
1142  /**
1143   * Touch pressure.
1144   * @form
1145   * @since 9
1146   */
1147  pressure: number;
1148
1149  /**
1150   * The angle between pencil projection on plane-X-Y and axis-Z.
1151   * @form
1152   * @since 9
1153   */
1154  tiltX: number;
1155
1156  /**
1157   * The angle between pencil projection on plane-Y-Z and axis-Z.
1158   * @form
1159   * @since 9
1160   */
1161  tiltY: number;
1162
1163  /**
1164   * The event tool type info.
1165   * @form
1166   * @since 9
1167   */
1168  sourceTool: SourceTool;
1169}
1170
1171/**
1172 * Border image option
1173 * @form
1174 * @since 9
1175 */
1176declare interface BorderImageOption {
1177  /**
1178   * Border image slice
1179   * @form
1180   * @since 9
1181   */
1182  slice?: Length | EdgeWidths,
1183
1184  /**
1185   * Border image repeat
1186   * @form
1187   * @since 9
1188   */
1189  repeat?: RepeatMode,
1190
1191  /**
1192   * Border image source
1193   * @form
1194   * @since 9
1195   */
1196  source?: string | Resource | LinearGradient,
1197
1198  /**
1199   * Border image width
1200   * @form
1201   * @since 9
1202   */
1203  width?: Length | EdgeWidths,
1204
1205  /**
1206   * Border image outset
1207   * @form
1208   * @since 9
1209   */
1210  outset?: Length | EdgeWidths,
1211
1212  /**
1213   * Border image center fill
1214   * @form
1215   * @since 9
1216   */
1217  fill?: boolean
1218}
1219
1220/**
1221 * The tap action triggers this method invocation.
1222 * @since 7
1223 */
1224/**
1225 * The tap action triggers this method invocation.
1226 * @form
1227 * @since 9
1228 */
1229declare interface ClickEvent extends BaseEvent {
1230  /**
1231   * X coordinate of the click point relative to the left edge of the device screen.
1232   * @since 7
1233   */
1234  /**
1235   * X coordinate of the click point relative to the left edge of the device screen.
1236   * @form
1237   * @since 9
1238   */
1239  screenX: number;
1240
1241  /**
1242   * The Y coordinate of the touch point relative to the upper edge of the device screen.
1243   * @since 7
1244   */
1245  /**
1246   * The Y coordinate of the touch point relative to the upper edge of the device screen.
1247   * @form
1248   * @since 9
1249   */
1250  screenY: number;
1251
1252  /**
1253   * X coordinate of the click point relative to the left edge of the clicked element.
1254   * @since 7
1255   */
1256  /**
1257   * X coordinate of the click point relative to the left edge of the clicked element.
1258   * @form
1259   * @since 9
1260   */
1261  x: number;
1262
1263  /**
1264   * Y coordinate of the click point relative to the upper edge of the clicked element.
1265   * @since 7
1266   */
1267  /**
1268   * Y coordinate of the click point relative to the left edge of the clicked element.
1269   * @form
1270   * @since 9
1271   */
1272  y: number;
1273}
1274
1275/**
1276 * The mouse click action triggers this method invocation.
1277 * @since 8
1278 */
1279declare interface MouseEvent extends BaseEvent {
1280  /**
1281   * Mouse button of the click event.
1282   * @since 8
1283   */
1284  button: MouseButton;
1285
1286  /**
1287   * Mouse action of the click event.
1288   * @since 8
1289   */
1290  action: MouseAction;
1291
1292  /**
1293   * X coordinate of the click point relative to the left edge of the device screen.
1294   * @since 8
1295   */
1296  screenX: number;
1297
1298  /**
1299   * The Y coordinate of the click point relative to the upper edge of the device screen.
1300   * @since 8
1301   */
1302  screenY: number;
1303
1304  /**
1305   * X coordinate of the click point relative to the left edge of the clicked element.
1306   * @since 8
1307   */
1308  x: number;
1309
1310  /**
1311   * Y coordinate of the click point relative to the upper edge of the clicked element.
1312   * @since 8
1313   */
1314  y: number;
1315
1316  /**
1317   * The blocking event pops up.
1318   * @since 8
1319   */
1320  stopPropagation?: () => void;
1321}
1322
1323/**
1324 * Type of the touch event.
1325 * @since 7
1326 */
1327declare interface TouchObject {
1328  /**
1329   * Type of the touch event.
1330   * @since 7
1331   */
1332  type: TouchType;
1333
1334  /**
1335   * Finger unique identifier.
1336   * @since 7
1337   */
1338  id: number;
1339
1340  /**
1341   * X coordinate of the touch point relative to the left edge of the device screen.
1342   * @since 7
1343   */
1344  screenX: number;
1345
1346  /**
1347   * The Y coordinate of the touch point relative to the upper edge of the device screen.
1348   * @since 7
1349   */
1350  screenY: number;
1351
1352  /**
1353   * X coordinate of the touch point relative to the left edge of the touched element.
1354   * @since 7
1355   */
1356  x: number;
1357
1358  /**
1359   * Y coordinate of the touch point relative to the upper edge of the touched element.
1360   * @since 7
1361   */
1362  y: number;
1363}
1364
1365/**
1366 * Touch Action Function Parameters
1367 * @since 7
1368 */
1369declare interface TouchEvent extends BaseEvent {
1370  /**
1371   * Type of the touch event.
1372   * @since 7
1373   */
1374  type: TouchType;
1375
1376  /**
1377   * All finger information.
1378   * @since 7
1379   */
1380  touches: TouchObject[];
1381
1382  /**
1383   * Indicates the current changed finger information.
1384   * @since 7
1385   */
1386  changedTouches: TouchObject[];
1387
1388  /**
1389   * The blocking event pops up.
1390   * @since 7
1391   */
1392  stopPropagation?: () => void;
1393}
1394
1395/**
1396 * Defines the PixelMap type object for ui component.
1397 * @since 7
1398 */
1399declare type PixelMap = import('../api/@ohos.multimedia.image').default.PixelMap;
1400
1401/**
1402 * pixelmap object with release function.
1403 * @systemapi
1404 * @since 7
1405 */
1406declare interface PixelMapMock {
1407  /**
1408   * release function.
1409   * @systemapi
1410   * @since 7
1411   */
1412  release(): void;
1413}
1414
1415/**
1416 * DragEvent object description
1417 * @since 7
1418 */
1419declare interface DragEvent {
1420  /**
1421   * Obtains the X coordinate of the drag window, in vp.
1422   * @since 7
1423   */
1424  getX(): number;
1425
1426  /**
1427   * Obtains the Y coordinate of the drag window, in vp.
1428   * @since 7
1429   */
1430  getY(): number;
1431}
1432
1433/**
1434 * KeyEvent object description:
1435 * @since 7
1436 */
1437declare interface KeyEvent {
1438  /**
1439   * Type of a key.
1440   * @since 7
1441   */
1442  type: KeyType;
1443
1444  /**
1445   * Key code of a key
1446   * @since 7
1447   */
1448  keyCode: number;
1449
1450  /**
1451   * Key value of a key.
1452   * @since 7
1453   */
1454  keyText: string;
1455
1456  /**
1457   * Type of the input device that triggers the current key, such as the keyboard or handle.
1458   * @since 7
1459   */
1460  keySource: KeySource;
1461
1462  /**
1463   * Indicates the ID of the input device that triggers the current key.
1464   * @since 7
1465   */
1466  deviceId: number;
1467
1468  /**
1469   * Indicates the status of the key when the key is pressed.
1470   * The value 1 indicates the pressed state, and the value 0 indicates the unpressed state.
1471   * @since 7
1472   */
1473  metaKey: number;
1474
1475  /**
1476   * Timestamp when the key was pressed.
1477   * @since 7
1478   */
1479  timestamp: number;
1480
1481  /**
1482   * Block event bubbling.
1483   * @since 7
1484   */
1485  stopPropagation?: () => void;
1486}
1487
1488/**
1489 * Component State Styles.
1490 * @since 8
1491 */
1492/**
1493 * Component State Styles.
1494 * @form
1495 * @since 9
1496 */
1497declare interface StateStyles {
1498  /**
1499   * Defines normal state styles.
1500   * @since 8
1501   */
1502  /**
1503   * Defines normal state styles.
1504   * @form
1505   * @since 9
1506   */
1507  normal?: any;
1508
1509  /**
1510   * Defines pressed state styles.
1511   * @since 8
1512   */
1513  /**
1514   * Defines pressed state styles.
1515   * @form
1516   * @since 9
1517   */
1518  pressed?: any;
1519
1520  /**
1521   * Defines disabled state styles.
1522   * @since 8
1523   */
1524  /**
1525   * Defines disabled state styles.
1526   * @form
1527   * @since 9
1528   */
1529  disabled?: any;
1530
1531  /**
1532   * Defines focused state styles.
1533   * @since 8
1534   */
1535  /**
1536   * Defines focused state styles.
1537   * @form
1538   * @since 9
1539   */
1540  focused?: any;
1541
1542  /**
1543   * Defines clicked state styles.
1544   * @since 8
1545   */
1546  /**
1547   * Defines clicked state styles.
1548   * @form
1549   * @since 9
1550   */
1551  clicked?: any;
1552}
1553
1554/**
1555 * Defines the popup options.
1556 * @since 7
1557 */
1558declare interface PopupOptions {
1559  /**
1560   * Information in the pop-up window.
1561   * @since 7
1562   */
1563  message: string;
1564
1565  /**
1566   * placement On Top
1567   * @since 7
1568   */
1569  placementOnTop?: boolean;
1570
1571  /**
1572   * The first button.
1573   * @since 7
1574   */
1575  primaryButton?: {
1576    /**
1577     * Button text value
1578     * @since 7
1579     */
1580    value: string;
1581
1582    /**
1583     * action
1584     * @since 7
1585     */
1586    action: () => void;
1587  };
1588
1589  /**
1590   * The second button.
1591   * @since 7
1592   */
1593  secondaryButton?: {
1594    /**
1595     * Button text value
1596     * @since 7
1597     */
1598    value: string;
1599
1600    /**
1601     * action
1602     * @since 7
1603     */
1604    action: () => void;
1605  };
1606
1607  /**
1608   * on State Change
1609   * @since 7
1610   */
1611  onStateChange?: (event: { isVisible: boolean }) => void;
1612
1613  /**
1614   * The offset of the sharp corner of popup.
1615   * @since 9
1616   */
1617   arrowOffset?: Length;
1618
1619  /**
1620   * Whether to display in the sub window.
1621   * @since 9
1622   */
1623   showInSubWindow?: boolean;
1624}
1625
1626/**
1627 * Defines the custom popup options.
1628 * @since 8
1629 */
1630declare interface CustomPopupOptions {
1631  /**
1632   * builder of popup
1633   * @since 8
1634   */
1635  builder: CustomBuilder;
1636
1637  /**
1638   * placement of popup
1639   * @since 8
1640   */
1641  placement?: Placement;
1642
1643  /**
1644   * mask color of popup
1645   * @since 8
1646   */
1647  maskColor?: Color | string | Resource | number;
1648
1649  /**
1650   * background color of popup
1651   * @since 8
1652   */
1653  popupColor?: Color | string | Resource | number;
1654
1655  /**
1656   * whether show arrow
1657   * @since 8
1658   */
1659  enableArrow?: boolean;
1660
1661  /**
1662   * whether hide popup when click mask
1663   * @since 8
1664   */
1665  autoCancel?: boolean;
1666
1667  /**
1668   * on State Change
1669   * @since 8
1670   */
1671  onStateChange?: (event: { isVisible: boolean }) => void;
1672
1673  /**
1674   * The offset of the sharp corner of popup.
1675   * @since 9
1676   */
1677   arrowOffset?: Length;
1678
1679  /**
1680   * Whether to display in the sub window.
1681   * @since 9
1682   */
1683   showInSubWindow?: boolean;
1684}
1685
1686/**
1687 * CommonMethod.
1688 * @since 7
1689 */
1690/**
1691 * CommonMethod.
1692 * @form
1693 * @since 9
1694 */
1695declare class CommonMethod<T> {
1696  /**
1697   * constructor.
1698   * @systemapi
1699   * @since 7
1700   * @ignore
1701   */
1702  /**
1703   * constructor.
1704   * @form
1705   * @systemapi
1706   * @since 9
1707   * @ignore
1708   */
1709  constructor();
1710
1711  /**
1712   * Sets the width of the current component.
1713   * @since 7
1714   */
1715  /**
1716   * Sets the width of the current component.
1717   * @form
1718   * @since 9
1719   */
1720  width(value: Length): T;
1721
1722  /**
1723   * Sets the height of the current component.
1724   * @since 7
1725   */
1726  /**
1727   * Sets the width of the current component.
1728   * @form
1729   * @since 9
1730   */
1731  height(value: Length): T;
1732
1733  /**
1734   * Sets the response region of the current component.
1735   * @since 8
1736   */
1737  /**
1738   * Sets the response region of the current component.
1739   * @form
1740   * @since 9
1741   */
1742  responseRegion(value: Array<Rectangle> | Rectangle): T;
1743
1744  /**
1745   * The size of the current component.
1746   * @since 7
1747   */
1748  /**
1749   * The size of the current component.
1750   * @form
1751   * @since 9
1752   */
1753  size(value: SizeOptions): T;
1754
1755  /**
1756   * constraint Size:
1757   * minWidth:minimum Width,maxWidth:maximum Width,minHeight:minimum Height ,maxHeight:maximum Height,
1758   * @since 7
1759   */
1760  /**
1761   * constraint Size:
1762   * minWidth:minimum Width,maxWidth:maximum Width,minHeight:minimum Height ,maxHeight:maximum Height,
1763   * @form
1764   * @since 9
1765   */
1766  constraintSize(value: ConstraintSizeOptions): T;
1767
1768  /**
1769   * Sets the touchable of the current component
1770   * @since 7
1771   * @deprecated since 9
1772   * @useinstead hitTestBehavior
1773   */
1774  touchable(value: boolean): T;
1775
1776  /**
1777   * Defines the component's hit test behavior in touch events.
1778   * @param value the hit test mode.
1779   * @since 9
1780   */
1781  hitTestBehavior(value: HitTestMode): T;
1782
1783  /**
1784   * layout Weight
1785   * @since 7
1786   */
1787  /**
1788   * layout Weight
1789   * @form
1790   * @since 9
1791   */
1792  layoutWeight(value: number | string): T;
1793
1794  /**
1795   * Inner margin.
1796   * @since 7
1797   */
1798  /**
1799   * Inner margin.
1800   * @form
1801   * @since 9
1802   */
1803  padding(value: Padding | Length): T;
1804
1805  /**
1806   * Outer Margin.
1807   * @since 7
1808   */
1809  /**
1810   * Outer Margin.
1811   * @form
1812   * @since 9
1813   */
1814  margin(value: Margin | Length): T;
1815
1816  /**
1817   * Background color
1818   * @since 7
1819   */
1820  /**
1821   * Background color
1822   * @form
1823   * @since 9
1824   */
1825  backgroundColor(value: ResourceColor): T;
1826
1827  /**
1828   * Background image
1829   * src: Image address url
1830   * @since 7
1831   */
1832  /**
1833   * Background image
1834   * src: Image address url
1835   * @form
1836   * @since 9
1837   */
1838  backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
1839
1840  /**
1841   * Background image size
1842   * @since 7
1843   */
1844  /**
1845   * Background image size
1846   * @form
1847   * @since 9
1848   */
1849  backgroundImageSize(value: SizeOptions | ImageSize): T;
1850
1851  /**
1852   * Background image position
1853   * x:Horizontal coordinate;y:Vertical axis coordinate.
1854   * @since 7
1855   */
1856  /**
1857   * Background image position
1858   * x:Horizontal coordinate;y:Vertical axis coordinate.
1859   * @form
1860   * @since 9
1861   */
1862  backgroundImagePosition(value: Position | Alignment): T;
1863
1864  /**
1865   * Background blur style.
1866   * blurStyle:Blur style type.
1867   * @form
1868   * @since 9
1869   */
1870   backgroundBlurStyle(value: BlurStyle): T;
1871
1872  /**
1873   * Opacity
1874   * @since 7
1875   */
1876  /**
1877   * Opacity
1878   * @form
1879   * @since 9
1880   */
1881  opacity(value: number | Resource): T;
1882
1883  /**
1884   * Opacity
1885   * width:Border width;color:Border color;radius:Border radius;
1886   * @since 7
1887   */
1888  /**
1889   * Opacity
1890   * width:Border width;color:Border color;radius:Border radius;
1891   * @form
1892   * @since 9
1893   */
1894  border(value: BorderOptions): T;
1895
1896  /**
1897   * Border style
1898   * @since 7
1899   */
1900  /**
1901   * Border style
1902   * @form
1903   * @since 9
1904   */
1905  borderStyle(value: BorderStyle): T;
1906
1907  /**
1908   * Border style
1909   * @form
1910   * @since 9
1911   */
1912   borderStyle(value: EdgeStyles): T;
1913
1914  /**
1915   * Border width
1916   * @since 7
1917   */
1918  /**
1919   * Border width
1920   * @form
1921   * @since 9
1922   */
1923  borderWidth(value: Length): T;
1924
1925  /**
1926   * Border width
1927   * @since 9
1928   */
1929  /**
1930   * Border width
1931   * @form
1932   * @since 9
1933   */
1934   borderWidth(value: EdgeWidths): T;
1935
1936  /**
1937   * Border color
1938   * @since 7
1939   */
1940  /**
1941   * Border color
1942   * @form
1943   * @since 9
1944   */
1945  borderColor(value: ResourceColor): T;
1946
1947  /**
1948   * Border color
1949   * @form
1950   * @since 9
1951   */
1952   borderColor(value: EdgeColors): T;
1953
1954  /**
1955   * Border radius
1956   * @since 7
1957   */
1958  /**
1959   * Border radius
1960   * @form
1961   * @since 9
1962   */
1963  borderRadius(value: Length): T;
1964
1965  /**
1966   * Border radius
1967   * @form
1968   * @since 9
1969   */
1970   borderRadius(value: BorderRadiuses): T;
1971
1972  /**
1973   * Border image
1974   * @form
1975   * @since 9
1976   */
1977  borderImage(value: BorderImageOption): T;
1978
1979  /**
1980   * Trigger a click event when a click is clicked.
1981   * @since 7
1982   */
1983  /**
1984   * Trigger a click event when a click is clicked.
1985   * @form
1986   * @since 9
1987   */
1988  onClick(event: (event?: ClickEvent) => void): T;
1989
1990  /**
1991   * Trigger a mouse hover event.
1992   * @since 8
1993   */
1994  onHover(event: (isHover?: boolean) => void): T;
1995
1996  /**
1997   * Set hover effect.
1998   * @since 8
1999   */
2000  hoverEffect(value: HoverEffect): T;
2001
2002  /**
2003   * Trigger a mouse event.
2004   * @since 8
2005   */
2006  onMouse(event: (event?: MouseEvent) => void): T;
2007
2008  /**
2009   * Trigger a touch event when touched.
2010   * @since 7
2011   */
2012  onTouch(event: (event?: TouchEvent) => void): T;
2013
2014  /**
2015   * Keyboard input
2016   * @since 7
2017   */
2018  onKeyEvent(event: (event?: KeyEvent) => void): T;
2019
2020  /**
2021   * Set focusable.
2022   * @since 8
2023   */
2024  focusable(value: boolean): T;
2025
2026  /**
2027   * Trigger a event when got focus.
2028   * @since 8
2029   */
2030  onFocus(event: () => void): T;
2031
2032  /**
2033   * Trigger a event when lose focus.
2034   * @since 8
2035   */
2036  onBlur(event: () => void): T;
2037
2038  /**
2039   * Set focus index by key tab.
2040   * @since 9
2041   */
2042  tabIndex(index: number): T;
2043
2044  /**
2045   * Set default focused component when a page create.
2046   * @since 9
2047   */
2048  defaultFocus(value: boolean): T;
2049
2050  /**
2051   * Set default focused component when focus on a focus group.
2052   * @since 9
2053   */
2054  groupDefaultFocus(value: boolean): T;
2055
2056  /**
2057   * Set a component focused when the component be touched.
2058   * @since 9
2059   */
2060  focusOnTouch(value: boolean): T;
2061
2062  /**
2063   * animation
2064   * @since 7
2065   */
2066  /**
2067   * animation
2068   * @form
2069   * @since 9
2070   */
2071  animation(value: AnimateParam): T;
2072
2073  /**
2074   * Transition parameter
2075   * @since 7
2076   */
2077  /**
2078   * Transition parameter
2079   * @form
2080   * @since 9
2081   */
2082  transition(value: TransitionOptions): T;
2083
2084  /**
2085   * Bind gesture recognition.
2086   * gesture:Bound Gesture Type,mask:GestureMask;
2087   * @since 7
2088   */
2089  gesture(gesture: GestureType, mask?: GestureMask): T;
2090
2091  /**
2092   * Binding Preferential Recognition Gestures
2093   * gesture:Bound Gesture Type,mask:GestureMask;
2094   * @since 7
2095   */
2096  priorityGesture(gesture: GestureType, mask?: GestureMask): T;
2097
2098  /**
2099   * Binding gestures that can be triggered simultaneously with internal component gestures
2100   * gesture:Bound Gesture Type,mask:GestureMask;
2101   * @since 7
2102   */
2103  parallelGesture(gesture: GestureType, mask?: GestureMask): T;
2104
2105  /**
2106   * Adds the content blurring effect for the current component. The input parameter is the blurring radius.
2107   * The larger the blurring radius, the more blurring the content.
2108   * If the value is 0, the content blurring effect is not blurring.
2109   * @since 7
2110   */
2111  /**
2112   * Adds the content blurring effect for the current component. The input parameter is the blurring radius.
2113   * The larger the blurring radius, the more blurring the content.
2114   * If the value is 0, the content blurring effect is not blurring.
2115   * @form
2116   * @since 9
2117   */
2118  blur(value: number): T;
2119
2120  /**
2121   * Adds a highlight effect to the current component.
2122   * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion.
2123   * The component is displayed as all white (percentage).
2124   * @since 7
2125   */
2126  /**
2127   * Adds a highlight effect to the current component.
2128   * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion.
2129   * The component is displayed as all white (percentage).
2130   * @form
2131   * @since 9
2132   */
2133  brightness(value: number): T;
2134
2135  /**
2136   * Adds a contrast effect to the current component. The input parameter is the contrast value.
2137   * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%)
2138   * @since 7
2139   */
2140  /**
2141   * Adds a contrast effect to the current component. The input parameter is the contrast value.
2142   * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%)
2143   * @form
2144   * @since 9
2145   */
2146  contrast(value: number): T;
2147
2148  /**
2149   * Adds a grayscale effect to the current component.
2150   * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change.
2151   * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage)
2152   * @since 7
2153   */
2154  /**
2155   * Adds a grayscale effect to the current component.
2156   * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change.
2157   * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage)
2158   * @form
2159   * @since 9
2160   */
2161  grayscale(value: number): T;
2162
2163  /**
2164   * Adds a color overlay effect for the current component. The input parameter is the superimposed color.
2165   * @since 7
2166   */
2167  /**
2168   * Adds a color overlay effect for the current component. The input parameter is the superimposed color.
2169   * @form
2170   * @since 9
2171   */
2172  colorBlend(value: Color | string | Resource): T;
2173
2174  /**
2175   * Adds a saturation effect to the current component.
2176   * The saturation is the ratio of the color-containing component to the achromatic component (gray).
2177   * The larger the color-containing component, the greater the saturation.
2178   * The larger the achromatic component, the smaller the saturation. (Percentage)
2179   * @since 7
2180   */
2181  /**
2182   * Adds a saturation effect to the current component.
2183   * The saturation is the ratio of the color-containing component to the achromatic component (gray).
2184   * The larger the color-containing component, the greater the saturation.
2185   * The larger the achromatic component, the smaller the saturation. (Percentage)
2186   * @form
2187   * @since 9
2188   */
2189  saturate(value: number): T;
2190
2191  /**
2192   * Converts the image to sepia. Value defines the scale of the conversion.
2193   * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage)
2194   * @since 7
2195   */
2196  /**
2197   * Converts the image to sepia. Value defines the scale of the conversion.
2198   * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage)
2199   * @form
2200   * @since 9
2201   */
2202  sepia(value: number): T;
2203
2204  /**
2205   * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal.
2206   * A value of 0% does not change the image. (Percentage)
2207   * @since 7
2208   */
2209  /**
2210   * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal.
2211   * A value of 0% does not change the image. (Percentage)
2212   * @form
2213   * @since 9
2214   */
2215  invert(value: number): T;
2216
2217  /**
2218   * Adds the hue rotation effect to the current component.
2219   * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value.
2220   * If the value exceeds 360deg, the image is circled again.
2221   * @since 7
2222   */
2223  /**
2224   * Adds the hue rotation effect to the current component.
2225   * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value.
2226   * If the value exceeds 360deg, the image is circled again.
2227   * @form
2228   * @since 9
2229   */
2230  hueRotate(value: number | string): T;
2231
2232  /**
2233   * Adds the background blur effect for the current component. The input parameter is the blur radius.
2234   * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred.
2235   * @since 7
2236   */
2237  /**
2238   * Adds the background blur effect for the current component. The input parameter is the blur radius.
2239   * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred.
2240   * @form
2241   * @since 9
2242   */
2243  backdropBlur(value: number): T;
2244
2245  /**
2246   * Sets the translation effect during page transition.
2247   * The value is the start point of entry and end point of exit.
2248   * When this parameter is set together with slide, slide takes effect by default.
2249   * @since 7
2250   */
2251  /**
2252   * Sets the translation effect during page transition.
2253   * The value is the start point of entry and end point of exit.
2254   * When this parameter is set together with slide, slide takes effect by default.
2255   * @form
2256   * @since 9
2257   */
2258  translate(value: TranslateOptions): T;
2259
2260  /**
2261   * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit.
2262   * @since 7
2263   */
2264  /**
2265   * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit.
2266   * @form
2267   * @since 9
2268   */
2269  scale(value: ScaleOptions): T;
2270
2271  /**
2272   * Default number of occupied columns, indicating the number of occupied grid columns when the number of columns (span) of the corresponding size is not set in the useSizeType attribute.
2273   * @since 7
2274   */
2275  gridSpan(value: number): T;
2276
2277  /**
2278   * The default offset column number indicates the number of offset columns of the current component in the start direction of the parent component when the useSizeType attribute does not set the offset of the corresponding dimension. That is,
2279   * the current component is located in the nth column.
2280   * @since 7
2281   */
2282  gridOffset(value: number): T;
2283
2284  /**
2285   * Sets the rotation effect during assembly transition.
2286   * The values are the start point during insertion and the end point during deletion.
2287   * @since 7
2288   */
2289  /**
2290   * Sets the rotation effect during assembly transition.
2291   * The values are the start point during insertion and the end point during deletion.
2292   * @form
2293   * @since 9
2294   */
2295  rotate(value: RotateOptions): T;
2296
2297  /**
2298   * Sets the transformation matrix for the current component.
2299   * @since 7
2300   */
2301  transform(value: object): T;
2302
2303  /**
2304   * This callback is triggered when a component mounts a display.
2305   * @since 7
2306   */
2307  /**
2308   * This callback is triggered when a component mounts a display.
2309   * @form
2310   * @since 9
2311   */
2312  onAppear(event: () => void): T;
2313
2314  /**
2315   * This callback is triggered when component uninstallation disappears.
2316   * @since 7
2317   */
2318  /**
2319   * This callback is triggered when component uninstallation disappears.
2320   * @form
2321   * @since 9
2322   */
2323  onDisAppear(event: () => void): T;
2324
2325  /**
2326   * This callback is triggered when the size or position of this component change finished.
2327   * @param event event callback.
2328   * @since 8
2329   */
2330  onAreaChange(event: (oldValue: Area, newValue: Area) => void): T;
2331
2332  /**
2333   * Controls the display or hide of the current component.
2334   * @since 7
2335   */
2336  /**
2337   * Controls the display or hide of the current component.
2338   * @form
2339   * @since 9
2340   */
2341  visibility(value: Visibility): T;
2342
2343  /**
2344   * The percentage of the remaining space of the Flex container allocated to the component on which this property resides.
2345   * @since 7
2346   */
2347  /**
2348   * The percentage of the remaining space of the Flex container allocated to the component on which this property resides.
2349   * @form
2350   * @since 9
2351   */
2352  flexGrow(value: number): T;
2353
2354  /**
2355   * The proportion of the Flex container compression size assigned to the component on which this attribute resides.
2356   * @since 7
2357   */
2358  /**
2359   * The proportion of the Flex container compression size assigned to the component on which this attribute resides.
2360   * @form
2361   * @since 9
2362   */
2363  flexShrink(value: number): T;
2364
2365  /**
2366   * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container.
2367   * @since 7
2368   */
2369  /**
2370   * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container.
2371   * @form
2372   * @since 9
2373   */
2374  flexBasis(value: number | string): T;
2375
2376  /**
2377   * Overrides the default configuration of alignItems in the Flex Layout container.
2378   * @since 7
2379   */
2380  /**
2381   * Overrides the default configuration of alignItems in the Flex Layout container.
2382   * @form
2383   * @since 9
2384   */
2385  alignSelf(value: ItemAlign): T;
2386
2387  /**
2388   * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts.
2389   * @since 7
2390   */
2391  /**
2392   * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts.
2393   * @form
2394   * @since 9
2395   */
2396  displayPriority(value: number): T;
2397
2398  /**
2399   * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level.
2400   * @since 7
2401   */
2402  /**
2403   * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level.
2404   * @form
2405   * @since 9
2406   */
2407  zIndex(value: number): T;
2408
2409  /**
2410   * If the components of the two pages are configured with the same ID, the shared element transition is performed during transition. If the parameter is set to an empty string, the shared element transition does not occur. For details about the options parameter, see the options parameter description.
2411   * @since 7
2412   */
2413  sharedTransition(id: string, options?: sharedTransitionOptions): T;
2414
2415  /**
2416   * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|).
2417   * @since 7
2418   */
2419  /**
2420   * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|).
2421   * @form
2422   * @since 9
2423   */
2424  direction(value: Direction): T;
2425
2426  /**
2427   * align
2428   * @since 7
2429   */
2430  /**
2431   * align
2432   * @form
2433   * @since 9
2434   */
2435  align(value: Alignment): T;
2436
2437  /**
2438   * position
2439   * @since 7
2440   */
2441  /**
2442   * position
2443   * @form
2444   * @since 9
2445   */
2446  position(value: Position): T;
2447
2448  /**
2449   * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element.
2450   * @since 7
2451   */
2452  /**
2453   * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element.
2454   * @form
2455   * @since 9
2456   */
2457  markAnchor(value: Position): T;
2458
2459  /**
2460   * Coordinate offset relative to the layout completion position.
2461   * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing.
2462   * @since 7
2463   */
2464  /**
2465   * Coordinate offset relative to the layout completion position.
2466   * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing.
2467   * @form
2468   * @since 9
2469   */
2470  offset(value: Position): T;
2471
2472  /**
2473   * If the value is true, the component is available and can respond to operations such as clicking.
2474   *  If it is set to false, click operations are not responded.
2475   * @since 7
2476   */
2477  /**
2478   * If the value is true, the component is available and can respond to operations such as clicking.
2479   *  If it is set to false, click operations are not responded.
2480   * @form
2481   * @since 9
2482   */
2483  enabled(value: boolean): T;
2484
2485  /**
2486   * Sets the number of occupied columns and offset columns for a specific device width type.
2487   * @since 7
2488   */
2489  useSizeType(value: {
2490    xs?: number | { span: number; offset: number };
2491    sm?: number | { span: number; offset: number };
2492    md?: number | { span: number; offset: number };
2493    lg?: number | { span: number; offset: number };
2494  }): T;
2495
2496  /**
2497   * Specifies the alignRules of relative container
2498   * @form
2499   * @since 9
2500   */
2501  alignRules(value: AlignRuleOption): T;
2502
2503  /**
2504   * Specifies the aspect ratio of the current component.
2505   * @since 7
2506   */
2507  /**
2508   * Specifies the aspect ratio of the current component.
2509   * @form
2510   * @since 9
2511   */
2512  aspectRatio(value: number): T;
2513
2514  /**
2515   * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered.
2516   * (To be triggered, press and hold for 170 milliseconds (ms))
2517   * @since 8
2518   */
2519  onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): T;
2520
2521  /**
2522   * After binding, a callback is triggered when the component is dragged to the range of the component.
2523   * @since 8
2524   */
2525  onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): T;
2526
2527  /**
2528   * After binding, a callback is triggered when the drag moves within the range of a placeable component.
2529   * @since 8
2530   */
2531  onDragMove(event: (event?: DragEvent, extraParams?: string) => void): T;
2532
2533  /**
2534   * After binding, a callback is triggered when the component is dragged out of the component range.
2535   * @since 8
2536   */
2537  onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): T;
2538
2539  /**
2540   * The component bound to this event can be used as the drag release target.
2541   * This callback is triggered when the drag behavior is stopped within the scope of the component.
2542   * @since 8
2543   */
2544  onDrop(event: (event?: DragEvent, extraParams?: string) => void): T;
2545
2546  /**
2547   * Add mask text to the current component. The layout is the same as that of the current component.
2548   * @since 7
2549   */
2550  /**
2551   * Add mask text to the current component. The layout is the same as that of the current component.
2552   * @form
2553   * @since 9
2554   */
2555  overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
2556
2557  /**
2558   * Linear Gradient
2559   * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient;  colors:Color description for gradients,repeating:repeating.
2560   * @since 7
2561   */
2562  /**
2563   * Linear Gradient
2564   * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient;  colors:Color description for gradients,repeating:repeating.
2565   * @form
2566   * @since 9
2567   */
2568  linearGradient(value: {
2569    angle?: number | string;
2570    direction?: GradientDirection;
2571    colors: Array<any>;
2572    repeating?: boolean;
2573  }): T;
2574
2575  /**
2576   * Angle Gradient
2577   * center:is the center point of the angle gradient
2578   * start:Start point of angle gradient
2579   * end:End point of angle gradient
2580   * number:number
2581   * rotating:rotating
2582   * colors:Color description for gradients
2583   * repeating:repeating
2584   * @since 7
2585   */
2586  /**
2587   * Angle Gradient
2588   * center:is the center point of the angle gradient
2589   * start:Start point of angle gradient
2590   * end:End point of angle gradient
2591   * number:number
2592   * rotating:rotating
2593   * colors:Color description for gradients
2594   * repeating:repeating
2595   * @form
2596   * @since 9
2597   */
2598  sweepGradient(value: {
2599    center: Array<any>;
2600    start?: number | string;
2601    end?: number | string;
2602    rotation?: number | string;
2603    colors: Array<any>;
2604    repeating?: boolean;
2605  }): T;
2606
2607  /**
2608   * Radial Gradient
2609   * center:Center point of radial gradient
2610   * radius:Radius of Radial Gradient
2611   * colors:Color description for gradients
2612   * repeating: Refill
2613   * @since 7
2614   */
2615  /**
2616   * Radial Gradient
2617   * center:Center point of radial gradient
2618   * radius:Radius of Radial Gradient
2619   * colors:Color description for gradients
2620   * repeating: Refill
2621   * @form
2622   * @since 9
2623   */
2624  radialGradient(value: { center: Array<any>; radius: number | string; colors: Array<any>; repeating?: boolean }): T;
2625
2626  /**
2627   * Set the motion path of the component
2628   * path:Motion path for displacement animation, using the svg path string.
2629   * from:Start point of the motion path. The default value is 0.0.
2630   * to:End point of the motion path. The default value is 1.0.
2631   * rotatable:Whether to follow the path for rotation.
2632   * @since 7
2633   */
2634  motionPath(value: MotionPathOptions): T;
2635
2636  /**
2637   * Add a shadow effect to the current component
2638   * @since 7
2639   */
2640  /**
2641   * Add a shadow effect to the current component
2642   * @form
2643   * @since 9
2644   */
2645  shadow(value: {
2646    radius: number | Resource;
2647    color?: Color | string | Resource;
2648    offsetX?: number | Resource;
2649    offsetY?: number | Resource;
2650  }): T;
2651
2652  /**
2653   * When the parameter is of the Shape type, the current component is cropped according to the specified shape.
2654   * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour.
2655   * @since 7
2656   */
2657  /**
2658   * When the parameter is of the Shape type, the current component is cropped according to the specified shape.
2659   * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour.
2660   * @form
2661   * @since 9
2662   */
2663  clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): T;
2664
2665  /**
2666   * Applies a mask of the specified shape to the current assembly.
2667   * @since 7
2668   */
2669  /**
2670   * Applies a mask of the specified shape to the current assembly.
2671   * @form
2672   * @since 9
2673   */
2674  mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): T;
2675
2676  /**
2677   * Key. User can set an key to the component to identify it.
2678   * @since 8
2679   * @systemapi
2680   * @test
2681   */
2682  key(value: string): T;
2683
2684  /**
2685   * Id. User can set an id to the component to identify it.
2686   * @since 8
2687   */
2688  /**
2689   * Id. User can set an id to the component to identify it.
2690   * @form
2691   * @since 9
2692   */
2693  id(value: string): T;
2694
2695  /**
2696   * geometryTransition
2697   * @since 7
2698   */
2699  geometryTransition(id: string): T;
2700
2701  /**
2702   * Popup control
2703   * @since 7
2704   */
2705  bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): T;
2706
2707  /**
2708   * Menu control
2709   * @since 7
2710   */
2711  bindMenu(content: { value: string; action: () => void }[] | CustomBuilder): T;
2712
2713  /**
2714   * ContextMenu control
2715   * @since 8
2716   */
2717  bindContextMenu(content: CustomBuilder, responseType: ResponseType): T;
2718
2719  /**
2720   * Sets styles for component state.
2721   * @since 8
2722   */
2723  /**
2724   * Sets styles for component state.
2725   * @form
2726   * @since 9
2727   */
2728  stateStyles(value: StateStyles): T;
2729
2730  /**
2731   * id for distribute identification.
2732   * @since 8
2733   */
2734  restoreId(value: number): T;
2735
2736  /**
2737   * Trigger a visible area change event.
2738   * @since 9
2739   */
2740   onVisibleAreaChange(ratios: Array<number>, event: (isVisible: boolean, currentRatio: number) => void): T;
2741}
2742
2743/**
2744 * CommonAttribute for ide.
2745 * @since 7
2746 */
2747/**
2748 * CommonAttribute for ide.
2749 * @form
2750 * @since 9
2751 */
2752declare class CommonAttribute extends CommonMethod<CommonAttribute> {}
2753
2754/**
2755 * CommonInterface for ide.
2756 * @since 7
2757 */
2758/**
2759 * CommonInterface for ide.
2760 * @form
2761 * @since 9
2762 */
2763interface CommonInterface {
2764  (): CommonAttribute;
2765}
2766
2767/**
2768 * CommonInstance for ide.
2769 * @since 7
2770 */
2771/**
2772 * CommonInstance for ide.
2773 * @form
2774 * @since 9
2775 */
2776declare const CommonInstance: CommonAttribute;
2777
2778/**
2779 * Common for ide.
2780 * @since 7
2781 */
2782/**
2783 * Common for ide.
2784 * @form
2785 * @since 9
2786 */
2787declare const Common: CommonInterface;
2788
2789/**
2790 * Defines the CustomBuilder Type.
2791 * @since 7
2792 */
2793/**
2794 * Defines the CustomBuilder Type.
2795 * @form
2796 * @since 9
2797 */
2798declare type CustomBuilder = (() => any) | void;
2799
2800/**
2801 * CommonShapeMethod
2802 * @since 7
2803 */
2804/**
2805 * CommonShapeMethod
2806 * @form
2807 * @since 9
2808 */
2809declare class CommonShapeMethod<T> extends CommonMethod<T> {
2810  /**
2811   * constructor.
2812   * @since 7
2813   * @systemapi
2814   */
2815  /**
2816   * constructor.
2817   * @form
2818   * @since 9
2819   * @systemapi
2820   */
2821  constructor();
2822
2823  /**
2824   * border Color
2825   * @since 7
2826   */
2827  /**
2828   * border Color
2829   * @form
2830   * @since 9
2831   */
2832  stroke(value: ResourceColor): T;
2833
2834  /**
2835   * Fill color.
2836   * @since 7
2837   */
2838  /**
2839   * Fill color.
2840   * @form
2841   * @since 9
2842   */
2843  fill(value: ResourceColor): T;
2844
2845  /**
2846   * Offset from the start point of the border drawing.
2847   * @since 7
2848   */
2849  /**
2850   * Offset from the start point of the border drawing.
2851   * @form
2852   * @since 9
2853   */
2854  strokeDashOffset(value: number | string): T;
2855
2856  /**
2857   * Path endpoint drawing style.
2858   * @since 7
2859   */
2860  /**
2861   * Path endpoint drawing style.
2862   * @form
2863   * @since 9
2864   */
2865  strokeLineCap(value: LineCapStyle): T;
2866
2867  /**
2868   * Border corner drawing style.
2869   * @since 7
2870   */
2871  /**
2872   * Border corner drawing style.
2873   * @form
2874   * @since 9
2875   */
2876  strokeLineJoin(value: LineJoinStyle): T;
2877
2878  /**
2879   * Limits for drawing acute angles as bevels
2880   * @since 7
2881   */
2882  /**
2883   * Limits for drawing acute angles as bevels
2884   * @form
2885   * @since 9
2886   */
2887  strokeMiterLimit(value: number | string): T;
2888
2889  /**
2890   * Sets the opacity of the border.
2891   * @since 7
2892   */
2893  /**
2894   * Sets the opacity of the border.
2895   * @form
2896   * @since 9
2897   */
2898  strokeOpacity(value: number | string | Resource): T;
2899
2900  /**
2901   * fill Opacity
2902   * @since 7
2903   */
2904  /**
2905   * fill Opacity
2906   * @form
2907   * @since 9
2908   */
2909  fillOpacity(value: number | string | Resource): T;
2910
2911  /**
2912   * Sets the width of the dividing line.
2913   * @since 7
2914   */
2915  /**
2916   * Sets the width of the dividing line.
2917   * @form
2918   * @since 9
2919   */
2920  strokeWidth(value: Length): T;
2921
2922  /**
2923   * Indicates whether to enable anti-aliasing
2924   * @since 7
2925   */
2926  /**
2927   * Indicates whether to enable anti-aliasing
2928   * @form
2929   * @since 9
2930   */
2931  antiAlias(value: boolean): T;
2932
2933  /**
2934   * Sets the gap for the border.
2935   * @since 7
2936   */
2937  /**
2938   * Sets the gap for the border.
2939   * @form
2940   * @since 9
2941   */
2942  strokeDashArray(value: Array<any>): T;
2943}
2944
2945/**
2946 * Linear Gradient Interface
2947 * @param { number | string } angle - Angle of Linear Gradient.
2948 * @param { GradientDirection } direction - Direction of Linear Gradient.
2949 * @param { Array<any> } colors - Array of colors
2950 * @param { boolean } repeating: Image slice repeating.
2951 * @syscap SystemCapability.ArkUI.ArkUI.Full
2952 * @since 9
2953 */
2954declare interface LinearGradient {
2955  angle?: number | string;
2956  direction?: GradientDirection;
2957  colors: Array<any>;
2958  repeating?: boolean;
2959}
2960
2961/**
2962 * Sub component border info.
2963 * @form
2964 * @since 9
2965 */
2966declare interface LayoutBorderInfo {
2967  borderWidth: EdgeWidths,
2968  margin: Margin,
2969  padding: Padding,
2970}
2971
2972/**
2973 * Sub component layout info.
2974 * @form
2975 * @since 9
2976 */
2977declare interface LayoutInfo {
2978  position: Position,
2979  constraint: ConstraintSizeOptions,
2980}
2981
2982/**
2983 * Sub component info passed from framework when layout and measure happens.
2984 * @form
2985 * @since 9
2986 */
2987declare interface LayoutChild {
2988  /**
2989   * Sub component name.
2990   * @form
2991   * @since 9
2992   */
2993  name: string,
2994
2995  /**
2996   * Sub component id.
2997   * @form
2998   * @since 9
2999   */
3000  id: string,
3001
3002  /**
3003   * Sub component constraint.
3004   * @form
3005   * @since 9
3006   */
3007  constraint: ConstraintSizeOptions,
3008
3009  /**
3010   * Sub component border info.
3011   * @form
3012   * @since 9
3013   */
3014  borderInfo: LayoutBorderInfo,
3015
3016  /**
3017   * Sub component position.
3018   * @form
3019   * @since 9
3020   */
3021  position: Position,
3022
3023  /**
3024   * Call this measure method in onMeasure callback to supply sub component size.
3025   * @form
3026   * @since 9
3027   */
3028  measure(childConstraint: ConstraintSizeOptions),
3029
3030  /**
3031   * Call this layout method in onLayout callback to assign layout info to sub component.
3032   * @form
3033   * @since 9
3034   */
3035  layout(childLayoutInfo: LayoutInfo)
3036}
3037
3038/**
3039 * Custom Component
3040 * @since 7
3041 */
3042/**
3043 * Custom Component
3044 * @extends CommonAttribute
3045 * @form
3046 * @since 9
3047 */
3048declare class CustomComponent extends CommonAttribute {
3049  /**
3050   * Customize the pop-up content constructor.
3051   * @since 7
3052   */
3053  /**
3054   * Customize the pop-up content constructor.
3055   * @form
3056   * @since 9
3057   */
3058  build(): void;
3059
3060  /**
3061   * aboutToAppear Method
3062   * @since 7
3063   */
3064  /**
3065   * aboutToAppear Method
3066   * @form
3067   * @since 9
3068   */
3069  aboutToAppear?(): void;
3070
3071  /**
3072   * aboutToDisappear Method
3073   * @since 7
3074   */
3075  /**
3076   * aboutToDisappear Method
3077   * @form
3078   * @since 9
3079   */
3080  aboutToDisappear?(): void;
3081
3082  /**
3083   * Custom component override this method to layout each of its sub components.
3084   * @form
3085   * @since 9
3086   */
3087  onLayout?(children: Array<LayoutChild>, constraint: ConstraintSizeOptions): void;
3088
3089  /**
3090   * Custom component override this method to measure each of its sub components.
3091   * @form
3092   * @since 9
3093   */
3094  onMeasure?(children: Array<LayoutChild>, constraint: ConstraintSizeOptions): void;
3095
3096  /**
3097   * onPageShow Method
3098   * @since 7
3099   */
3100  onPageShow?(): void;
3101
3102  /**
3103   * onPageHide Method
3104   * @since 7
3105   */
3106  onPageHide?(): void;
3107
3108  /**
3109   * onBackPress Method
3110   * @since 7
3111   */
3112  onBackPress?(): void;
3113
3114  /**
3115   * PageTransition Method.
3116   * Implement Animation when enter this page or move to other pages.
3117   * @since 9
3118   */
3119  pageTransition?(): void;
3120}
3121
3122/**
3123 * View
3124 * @ignore ide should ignore this class
3125 * @systemapi
3126 * @since 7
3127 */
3128/**
3129 * View
3130 * @ignore ide should ignore this class
3131 * @systemapi
3132 * @form
3133 * @since 9
3134 */
3135declare class View {
3136  /**
3137   * Just use for generate tsbundle
3138   * @ignore ide should ignore this attribute
3139   * @systemapi
3140   * @since 7
3141   */
3142  create(value: any): any;
3143}
3144
3145declare module "SpecialEvent" {
3146  module "SpecialEvent" {
3147    // @ts-ignore
3148    export { TouchObject, KeyEvent, MouseEvent };
3149  }
3150}
3151