• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkUI
19 */
20
21/**
22 * The information of sheet.
23 *
24 * @interface SheetInfo
25 * @syscap SystemCapability.ArkUI.ArkUI.Full
26 * @since 8
27 */
28/**
29 * The information of sheet.
30 *
31 * @interface SheetInfo
32 * @syscap SystemCapability.ArkUI.ArkUI.Full
33 * @crossplatform
34 * @since 10
35 */
36/**
37 * The information of sheet.
38 *
39 * @interface SheetInfo
40 * @syscap SystemCapability.ArkUI.ArkUI.Full
41 * @crossplatform
42 * @atomicservice
43 * @since 11
44 */
45interface SheetInfo {
46  /**
47   * Title Properties
48   *
49   * @type { string | Resource }
50   * @syscap SystemCapability.ArkUI.ArkUI.Full
51   * @since 8
52   */
53  /**
54   * Title Properties
55   *
56   * @type { string | Resource }
57   * @syscap SystemCapability.ArkUI.ArkUI.Full
58   * @crossplatform
59   * @since 10
60   */
61  /**
62   * Title Properties
63   *
64   * @type { string | Resource }
65   * @syscap SystemCapability.ArkUI.ArkUI.Full
66   * @crossplatform
67   * @atomicservice
68   * @since 11
69   */
70  title: string | Resource;
71
72  /**
73   * Icon Properties.
74   *
75   * @type { ?(string | Resource) }
76   * @syscap SystemCapability.ArkUI.ArkUI.Full
77   * @since 8
78   */
79  /**
80   * Icon Properties.
81   *
82   * @type { ?(string | Resource) }
83   * @syscap SystemCapability.ArkUI.ArkUI.Full
84   * @crossplatform
85   * @since 10
86   */
87  /**
88   * Icon Properties.
89   *
90   * @type { ?(string | Resource) }
91   * @syscap SystemCapability.ArkUI.ArkUI.Full
92   * @crossplatform
93   * @atomicservice
94   * @since 11
95   */
96  icon?: string | Resource;
97
98  /**
99   * Callback method after the operation.
100   *
101   * @type { function }
102   * @syscap SystemCapability.ArkUI.ArkUI.Full
103   * @since 8
104   */
105  /**
106   * Callback method after the operation.
107   *
108   * @type { function }
109   * @syscap SystemCapability.ArkUI.ArkUI.Full
110   * @crossplatform
111   * @since 10
112   */
113  /**
114   * Callback method after the operation.
115   *
116   * @type { function }
117   * @syscap SystemCapability.ArkUI.ArkUI.Full
118   * @crossplatform
119   * @atomicservice
120   * @since 11
121   */
122  /**
123   * Callback method after the operation.
124   * Anonymous Object Rectification.
125   *
126   * @type { VoidCallback }
127   * @syscap SystemCapability.ArkUI.ArkUI.Full
128   * @crossplatform
129   * @atomicservice
130   * @since 18
131   */
132  action: VoidCallback;
133}
134
135/**
136 * Component dialog dismiss action.
137 *
138 * @interface DismissDialogAction
139 * @syscap SystemCapability.ArkUI.ArkUI.Full
140 * @crossplatform
141 * @atomicservice
142 * @since 12
143 */
144declare interface DismissDialogAction {
145  /**
146   * Defines dialog dismiss function.
147   *
148   * @type { Callback<void> }
149   * @syscap SystemCapability.ArkUI.ArkUI.Full
150   * @crossplatform
151   * @atomicservice
152   * @since 12
153   */
154  dismiss: Callback<void>;
155
156  /**
157   * Dismiss reason type.
158   *
159   * @type { DismissReason }
160   * @syscap SystemCapability.ArkUI.ArkUI.Full
161   * @crossplatform
162   * @atomicservice
163   * @since 12
164   */
165  reason: DismissReason;
166}
167
168/**
169 * Base button params used for ActionSheet.
170 *
171 * @interface ActionSheetButtonOptions
172 * @syscap SystemCapability.ArkUI.ArkUI.Full
173 * @crossplatform
174 * @atomicservice
175 * @since 18
176 */
177interface ActionSheetButtonOptions {
178  /**
179   * Enable switch of confirmation button
180   * @type { ?boolean }
181   * @default true
182   * @syscap SystemCapability.ArkUI.ArkUI.Full
183   * @crossplatform
184   * @since 10
185   */
186  /**
187   * Enable switch of confirmation button
188   * @type { ?boolean }
189   * @default true
190   * @syscap SystemCapability.ArkUI.ArkUI.Full
191   * @crossplatform
192   * @atomicservice
193   * @since 11
194   */
195  /**
196   * Enable switch of confirmation button
197   * Anonymous Object Rectification.
198   *
199   * @type { ?boolean }
200   * @default true
201   * @syscap SystemCapability.ArkUI.ArkUI.Full
202   * @crossplatform
203   * @atomicservice
204   * @since 18
205   */
206  enabled?: boolean;
207
208  /**
209   * Default focus switch of confirmation button
210   * @type { ?boolean }
211   * @default false
212   * @syscap SystemCapability.ArkUI.ArkUI.Full
213   * @crossplatform
214   * @since 10
215   */
216  /**
217   * Default focus switch of confirmation button
218   * @type { ?boolean }
219   * @default false
220   * @syscap SystemCapability.ArkUI.ArkUI.Full
221   * @crossplatform
222   * @atomicservice
223   * @since 11
224   */
225  /**
226   * Default focus switch of confirmation button
227   * Anonymous Object Rectification.
228   *
229   * @type { ?boolean }
230   * @default false
231   * @syscap SystemCapability.ArkUI.ArkUI.Full
232   * @crossplatform
233   * @atomicservice
234   * @since 18
235   */
236  defaultFocus?: boolean;
237
238  /**
239   * Style of confirmation button.
240   * @type { ?DialogButtonStyle }
241   * @default DialogButtonStyle.DEFAULT
242   * @syscap SystemCapability.ArkUI.ArkUI.Full
243   * @crossplatform
244   * @since 10
245   */
246  /**
247   * Style of confirmation button.
248   * @type { ?DialogButtonStyle }
249   * @default DialogButtonStyle.DEFAULT
250   * @syscap SystemCapability.ArkUI.ArkUI.Full
251   * @crossplatform
252   * @atomicservice
253   * @since 11
254   */
255  /**
256   * Style of confirmation button.
257   * Anonymous Object Rectification.
258   *
259   * @type { ?DialogButtonStyle }
260   * @default DialogButtonStyle.DEFAULT
261   * @syscap SystemCapability.ArkUI.ArkUI.Full
262   * @crossplatform
263   * @atomicservice
264   * @since 18
265   */
266  style?: DialogButtonStyle;
267
268  /**
269   * Text content of the confirmation button.
270   *
271   * @type { string | Resource }
272   * @syscap SystemCapability.ArkUI.ArkUI.Full
273   * @since 8
274   */
275  /**
276   * Text content of the confirmation button.
277   *
278   * @type { string | Resource }
279   * @syscap SystemCapability.ArkUI.ArkUI.Full
280   * @crossplatform
281   * @since 10
282   */
283  /**
284   * Text content of the confirmation button.
285   *
286   * @type { string | Resource }
287   * @syscap SystemCapability.ArkUI.ArkUI.Full
288   * @crossplatform
289   * @atomicservice
290   * @since 11
291   */
292  /**
293   * Text content of the confirmation button.
294   * Anonymous Object Rectification.
295   *
296   * @type { string | Resource }
297   * @syscap SystemCapability.ArkUI.ArkUI.Full
298   * @crossplatform
299   * @atomicservice
300   * @since 18
301   */
302  value: string | Resource;
303
304  /**
305   * Method executed by the callback.
306   *
307   * @type { function }
308   * @syscap SystemCapability.ArkUI.ArkUI.Full
309   * @since 8
310   */
311  /**
312   * Method executed by the callback.
313   *
314   * @type { function }
315   * @syscap SystemCapability.ArkUI.ArkUI.Full
316   * @crossplatform
317   * @since 10
318   */
319  /**
320   * Method executed by the callback.
321   *
322   * @type { function }
323   * @syscap SystemCapability.ArkUI.ArkUI.Full
324   * @crossplatform
325   * @atomicservice
326   * @since 11
327   */
328  /**
329   * Method executed by the callback.
330   * Anonymous Object Rectification.
331   *
332   * @type { VoidCallback }
333   * @syscap SystemCapability.ArkUI.ArkUI.Full
334   * @crossplatform
335   * @atomicservice
336   * @since 18
337   */
338  action: VoidCallback;
339}
340
341/**
342 * ActionSheet offset.
343 *
344 * @interface ActionSheetOffset
345 * @syscap SystemCapability.ArkUI.ArkUI.Full
346 * @crossplatform
347 * @atomicservice
348 * @since 18
349 */
350interface ActionSheetOffset {
351  /**
352   * Dx of the pop-up window relative to the alignment position.
353   * Anonymous Object Rectification.
354   *
355   * @type { number | string | Resource }
356   * @syscap SystemCapability.ArkUI.ArkUI.Full
357   * @crossplatform
358   * @atomicservice
359   * @since 18
360   */
361  dx: number | string | Resource;
362  /**
363   * Dy of the pop-up window relative to the alignment position.
364   * Anonymous Object Rectification.
365   *
366   * @type { number | string | Resource }
367   * @syscap SystemCapability.ArkUI.ArkUI.Full
368   * @crossplatform
369   * @atomicservice
370   * @since 18
371   */
372  dy: number | string | Resource;
373}
374
375/**
376 * Import the LevelMode type from promptAction.
377 *
378 * @typedef { import('../api/@ohos.promptAction').LevelMode } LevelMode
379 * @syscap SystemCapability.ArkUI.ArkUI.Full
380 * @crossplatform
381 * @atomicservice
382 * @since 15
383 */
384declare type LevelMode = import('../api/@ohos.promptAction').LevelMode;
385
386/**
387 * Import the ImmersiveMode type from promptAction.
388 *
389 * @typedef { import('../api/@ohos.promptAction').ImmersiveMode } ImmersiveMode
390 * @syscap SystemCapability.ArkUI.ArkUI.Full
391 * @crossplatform
392 * @atomicservice
393 * @since 15
394 */
395declare type ImmersiveMode = import('../api/@ohos.promptAction').ImmersiveMode;
396
397/**
398 * The options of ActionSheet.
399 *
400 * @interface ActionSheetOptions
401 * @syscap SystemCapability.ArkUI.ArkUI.Full
402 * @since 8
403 */
404/**
405 * The options of ActionSheet.
406 *
407 * @interface ActionSheetOptions
408 * @syscap SystemCapability.ArkUI.ArkUI.Full
409 * @crossplatform
410 * @since 10
411 */
412/**
413 * The options of ActionSheet.
414 *
415 * @interface ActionSheetOptions
416 * @syscap SystemCapability.ArkUI.ArkUI.Full
417 * @crossplatform
418 * @atomicservice
419 * @since 11
420 */
421interface ActionSheetOptions
422{
423  /**
424   * Title Properties
425   *
426   * @type { string | Resource }
427   * @syscap SystemCapability.ArkUI.ArkUI.Full
428   * @since 8
429   */
430  /**
431   * Title Properties
432   *
433   * @type { string | Resource }
434   * @syscap SystemCapability.ArkUI.ArkUI.Full
435   * @crossplatform
436   * @since 10
437   */
438  /**
439   * Title Properties
440   *
441   * @type { string | Resource }
442   * @syscap SystemCapability.ArkUI.ArkUI.Full
443   * @crossplatform
444   * @atomicservice
445   * @since 11
446   */
447  title: string | Resource;
448
449  /**
450   * Subtitle Properties
451   * @type { ?ResourceStr }
452   * @syscap SystemCapability.ArkUI.ArkUI.Full
453   * @crossplatform
454   * @since 10
455   */
456  /**
457   * Subtitle Properties
458   * @type { ?ResourceStr }
459   * @syscap SystemCapability.ArkUI.ArkUI.Full
460   * @crossplatform
461   * @atomicservice
462   * @since 11
463   */
464  subtitle?: ResourceStr;
465
466  /**
467   * message Properties
468   *
469   * @type { string | Resource }
470   * @syscap SystemCapability.ArkUI.ArkUI.Full
471   * @since 8
472   */
473  /**
474   * message Properties
475   *
476   * @type { string | Resource }
477   * @syscap SystemCapability.ArkUI.ArkUI.Full
478   * @crossplatform
479   * @since 10
480   */
481  /**
482   * message Properties
483   *
484   * @type { string | Resource }
485   * @syscap SystemCapability.ArkUI.ArkUI.Full
486   * @crossplatform
487   * @atomicservice
488   * @since 11
489   */
490  message: string | Resource;
491
492  /**
493   * Invoke the commit function.
494   *
495   * @type { ?object }
496   * @syscap SystemCapability.ArkUI.ArkUI.Full
497   * @since 8
498   */
499  /**
500   * Invoke the commit function.
501   *
502   * @type { ?object }
503   * @syscap SystemCapability.ArkUI.ArkUI.Full
504   * @crossplatform
505   * @since 10
506   */
507  /**
508   * Invoke the commit function.
509   *
510   * @type { ?object }
511   * @syscap SystemCapability.ArkUI.ArkUI.Full
512   * @crossplatform
513   * @atomicservice
514   * @since 11
515   */
516  /**
517   * Invoke the commit function.
518   * Anonymous Object Rectification.
519   *
520   * @type { ?ActionSheetButtonOptions }
521   * @syscap SystemCapability.ArkUI.ArkUI.Full
522   * @crossplatform
523   * @atomicservice
524   * @since 18
525   */
526  confirm?: ActionSheetButtonOptions;
527
528  /**
529   * Execute Cancel Function.
530   *
531   * @type { ?function }
532   * @syscap SystemCapability.ArkUI.ArkUI.Full
533   * @since 8
534   */
535  /**
536   * Execute Cancel Function.
537   *
538   * @type { ?function }
539   * @syscap SystemCapability.ArkUI.ArkUI.Full
540   * @crossplatform
541   * @since 10
542   */
543  /**
544   * Execute Cancel Function.
545   *
546   * @type { ?function }
547   * @syscap SystemCapability.ArkUI.ArkUI.Full
548   * @crossplatform
549   * @atomicservice
550   * @since 11
551   */
552  /**
553   * Execute Cancel Function.
554   * Anonymous Object Rectification.
555   *
556   * @type { ?VoidCallback }
557   * @syscap SystemCapability.ArkUI.ArkUI.Full
558   * @crossplatform
559   * @atomicservice
560   * @since 18
561   */
562  cancel?: VoidCallback;
563
564  /**
565   * The Array of sheets
566   *
567   * @type { Array<SheetInfo> }
568   * @syscap SystemCapability.ArkUI.ArkUI.Full
569   * @since 8
570   */
571  /**
572   * The Array of sheets
573   *
574   * @type { Array<SheetInfo> }
575   * @syscap SystemCapability.ArkUI.ArkUI.Full
576   * @crossplatform
577   * @since 10
578   */
579  /**
580   * The Array of sheets
581   *
582   * @type { Array<SheetInfo> }
583   * @syscap SystemCapability.ArkUI.ArkUI.Full
584   * @crossplatform
585   * @atomicservice
586   * @since 11
587   */
588  sheets: Array<SheetInfo>;
589
590  /**
591   * Allows users to click the mask layer to exit.
592   *
593   * @type { ?boolean }
594   * @syscap SystemCapability.ArkUI.ArkUI.Full
595   * @since 8
596   */
597  /**
598   * Allows users to click the mask layer to exit.
599   *
600   * @type { ?boolean }
601   * @syscap SystemCapability.ArkUI.ArkUI.Full
602   * @crossplatform
603   * @since 10
604   */
605  /**
606   * Allows users to click the mask layer to exit.
607   *
608   * @type { ?boolean }
609   * @syscap SystemCapability.ArkUI.ArkUI.Full
610   * @crossplatform
611   * @atomicservice
612   * @since 11
613   */
614  autoCancel?: boolean;
615
616  /**
617   * Alignment in the vertical direction.
618   *
619   * @type { ?DialogAlignment }
620   * @syscap SystemCapability.ArkUI.ArkUI.Full
621   * @since 8
622   */
623  /**
624   * Alignment in the vertical direction.
625   *
626   * @type { ?DialogAlignment }
627   * @syscap SystemCapability.ArkUI.ArkUI.Full
628   * @crossplatform
629   * @since 10
630   */
631  /**
632   * Alignment in the vertical direction.
633   *
634   * @type { ?DialogAlignment }
635   * @syscap SystemCapability.ArkUI.ArkUI.Full
636   * @crossplatform
637   * @atomicservice
638   * @since 11
639   */
640  alignment?: DialogAlignment;
641
642  /**
643   * Offset of the pop-up window relative to the alignment position.
644   *
645   * @type { ?object }
646   * @syscap SystemCapability.ArkUI.ArkUI.Full
647   * @since 8
648   */
649  /**
650   * Offset of the pop-up window relative to the alignment position.
651   *
652   * @type { ?object }
653   * @syscap SystemCapability.ArkUI.ArkUI.Full
654   * @crossplatform
655   * @since 10
656   */
657  /**
658   * Offset of the pop-up window relative to the alignment position.
659   *
660   * @type { ?object }
661   * @syscap SystemCapability.ArkUI.ArkUI.Full
662   * @crossplatform
663   * @atomicservice
664   * @since 11
665   */
666  /**
667   * Offset of the pop-up window relative to the alignment position.
668   * Anonymous Object Rectification.
669   *
670   * @type { ?ActionSheetOffset }
671   * @syscap SystemCapability.ArkUI.ArkUI.Full
672   * @crossplatform
673   * @atomicservice
674   * @since 18
675   */
676  offset?: ActionSheetOffset;
677
678  /**
679   * Mask Region of dialog. The size cannot exceed the main window.
680   *
681   * @type { ?Rectangle }
682   * @syscap SystemCapability.ArkUI.ArkUI.Full
683   * @crossplatform
684   * @since 10
685   */
686  /**
687   * Mask Region of dialog. The size cannot exceed the main window.
688   *
689   * @type { ?Rectangle }
690   * @syscap SystemCapability.ArkUI.ArkUI.Full
691   * @crossplatform
692   * @atomicservice
693   * @since 11
694   */
695  maskRect?: Rectangle;
696
697  /**
698   * Whether to display in the sub window.
699   *
700   * @type { ?boolean }
701   * @default false
702   * @syscap SystemCapability.ArkUI.ArkUI.Full
703   * @crossplatform
704   * @since 11
705   */
706  /**
707   * Whether to display in the sub window.
708   *
709   * @type { ?boolean }
710   * @default false
711   * @syscap SystemCapability.ArkUI.ArkUI.Full
712   * @crossplatform
713   * @atomicservice
714   * @since 12
715   */
716  showInSubWindow?: boolean;
717
718  /**
719   * Whether it is a modal dialog
720   * @type { ?boolean }
721   * @default true
722   * @syscap SystemCapability.ArkUI.ArkUI.Full
723   * @crossplatform
724   * @since 11
725   */
726  /**
727   * Whether it is a modal dialog
728   * @type { ?boolean }
729   * @default true
730   * @syscap SystemCapability.ArkUI.ArkUI.Full
731   * @crossplatform
732   * @atomicservice
733   * @since 12
734   */
735  isModal?: boolean;
736
737  /**
738   * Defines the actionSheet's background color
739   *
740   * @type { ?ResourceColor }
741   * @default Color.Transparent
742   * @syscap SystemCapability.ArkUI.ArkUI.Full
743   * @crossplatform
744   * @since 11
745   */
746  /**
747   * Defines the actionSheet's background color
748   *
749   * @type { ?ResourceColor }
750   * @default Color.Transparent
751   * @syscap SystemCapability.ArkUI.ArkUI.Full
752   * @crossplatform
753   * @atomicservice
754   * @since 12
755   */
756  backgroundColor?: ResourceColor;
757
758  /**
759   * Defines the actionSheet's background blur Style
760   *
761   * @type { ?BlurStyle }
762   * @default BlurStyle.COMPONENT_ULTRA_THICK
763   * @syscap SystemCapability.ArkUI.ArkUI.Full
764   * @crossplatform
765   * @since 11
766   */
767  /**
768   * Defines the actionSheet's background blur Style
769   *
770   * @type { ?BlurStyle }
771   * @default BlurStyle.COMPONENT_ULTRA_THICK
772   * @syscap SystemCapability.ArkUI.ArkUI.Full
773   * @crossplatform
774   * @atomicservice
775   * @since 12
776   */
777  backgroundBlurStyle?: BlurStyle;
778
779  /**
780   * Callback function when the actionSheet interactive dismiss
781   *
782   * @type { ?Callback<DismissDialogAction> }
783   * @syscap SystemCapability.ArkUI.ArkUI.Full
784   * @crossplatform
785   * @atomicservice
786   * @since 12
787   */
788  onWillDismiss?: Callback<DismissDialogAction>;
789
790  /**
791   * Transition parameters of opening/closing ActionSheet.
792   *
793   * @type { ?TransitionEffect }
794   * @syscap SystemCapability.ArkUI.ArkUI.Full
795   * @crossplatform
796   * @atomicservice
797   * @since 12
798   */
799  transition?: TransitionEffect;
800
801  /**
802   * Defines the actionSheet's corner radius.
803   *
804   * @type { ?(Dimension | BorderRadiuses | LocalizedBorderRadiuses) }
805   * @syscap SystemCapability.ArkUI.ArkUI.Full
806   * @crossplatform
807   * @atomicservice
808   * @since 12
809   */
810  cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses;
811
812  /**
813   * Defines the actionSheet's width.
814   *
815   * @type { ?Dimension }
816   * @syscap SystemCapability.ArkUI.ArkUI.Full
817   * @crossplatform
818   * @atomicservice
819   * @since 12
820   */
821  width?: Dimension;
822
823  /**
824   * Defines the actionSheet's height.
825   *
826   * @type { ?Dimension }
827   * @syscap SystemCapability.ArkUI.ArkUI.Full
828   * @crossplatform
829   * @atomicservice
830   * @since 12
831   */
832  height?: Dimension;
833
834  /**
835   * Defines the actionSheet's border width.
836   *
837   * @type { ?(Dimension | EdgeWidths | LocalizedEdgeWidths) }
838   * @syscap SystemCapability.ArkUI.ArkUI.Full
839   * @crossplatform
840   * @atomicservice
841   * @since 12
842   */
843  borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths;
844
845  /**
846   * Defines the actionSheet's border color.
847   *
848   * @type { ?(ResourceColor | EdgeColors | LocalizedEdgeColors) }
849   * @syscap SystemCapability.ArkUI.ArkUI.Full
850   * @crossplatform
851   * @atomicservice
852   * @since 12
853   */
854  borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors;
855
856  /**
857   * Defines the actionSheet's border style.
858   *
859   * @type { ?(BorderStyle | EdgeStyles) }
860   * @syscap SystemCapability.ArkUI.ArkUI.Full
861   * @crossplatform
862   * @atomicservice
863   * @since 12
864   */
865  borderStyle?: BorderStyle | EdgeStyles;
866
867  /**
868   * Defines the actionSheet's shadow.
869   *
870   * @type { ?(ShadowOptions | ShadowStyle) }
871   * @syscap SystemCapability.ArkUI.ArkUI.Full
872   * @crossplatform
873   * @atomicservice
874   * @since 12
875   */
876  shadow?: ShadowOptions | ShadowStyle;
877
878  /**
879   * Defines whether to respond to the hover mode.
880   *
881   * @type { ?boolean }
882   * @default false
883   * @syscap SystemCapability.ArkUI.ArkUI.Full
884   * @crossplatform
885   * @atomicservice
886   * @since 14
887   */
888  enableHoverMode?: boolean;
889
890  /**
891   * Defines the actionSheet's display area in hover mode.
892   *
893   * @type { ?HoverModeAreaType }
894   * @default HoverModeAreaType.BOTTOM_SCREEN
895   * @syscap SystemCapability.ArkUI.ArkUI.Full
896   * @crossplatform
897   * @atomicservice
898   * @since 14
899   */
900  hoverModeArea?: HoverModeAreaType;
901
902  /**
903   * Determine the display level of the dialog.
904   *
905   * @type { ?LevelMode }
906   * @default LevelMode.OVERLAY
907   * @syscap SystemCapability.ArkUI.ArkUI.Full
908   * @crossplatform
909   * @atomicservice
910   * @since 15
911   */
912  levelMode?: LevelMode;
913
914  /**
915   * The uniqueId of any node in the router or navigation page.
916   *
917   * @type { ?number }
918   * @syscap SystemCapability.ArkUI.ArkUI.Full
919   * @crossplatform
920   * @atomicservice
921   * @since 15
922   */
923  levelUniqueId?: number;
924
925  /**
926   * Determine the immersive mode of the dialog.
927   *
928   * @type { ?ImmersiveMode }
929   * @default ImmersiveMode.DEFAULT
930   * @syscap SystemCapability.ArkUI.ArkUI.Full
931   * @crossplatform
932   * @atomicservice
933   * @since 15
934   */
935  immersiveMode?: ImmersiveMode;
936
937  /**
938   * Determine the display order of the dialog.
939   *
940   * @type { ?LevelOrder }
941   * @default The value returns by LevelOrder.clamp(0)
942   * @syscap SystemCapability.ArkUI.ArkUI.Full
943   * @crossplatform
944   * @atomicservice
945   * @since 18
946   */
947  levelOrder?: LevelOrder;
948}
949
950/**
951 * Declare the ActionSheet
952 *
953 * @syscap SystemCapability.ArkUI.ArkUI.Full
954 * @since 8
955 */
956/**
957 * Declare the ActionSheet
958 *
959 * @syscap SystemCapability.ArkUI.ArkUI.Full
960 * @crossplatform
961 * @since 10
962 */
963/**
964 * Declare the ActionSheet
965 *
966 * @syscap SystemCapability.ArkUI.ArkUI.Full
967 * @crossplatform
968 * @atomicservice
969 * @since 11
970 */
971declare class ActionSheet {
972  /**
973   * Invoking method display.
974   *
975   * @param { ActionSheetOptions } value
976   * @syscap SystemCapability.ArkUI.ArkUI.Full
977   * @since 8
978   */
979  /**
980   * Invoking method display.
981   *
982   * @param { ActionSheetOptions } value
983   * @syscap SystemCapability.ArkUI.ArkUI.Full
984   * @crossplatform
985   * @since 10
986   */
987  /**
988   * Invoking method display.
989   *
990   * @param { ActionSheetOptions } value
991   * @syscap SystemCapability.ArkUI.ArkUI.Full
992   * @crossplatform
993   * @atomicservice
994   * @since 11
995   * @deprecated since 18
996   * @useinstead ohos.arkui.UIContext.UIContext#showActionSheet
997   */
998  static show(value: ActionSheetOptions);
999}
1000