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