• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (C) 2023-2024 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
23
24import { Theme, CustomTheme } from '@ohos.arkui.theme';
25
26/**
27 * Declare ButtonOptions
28 * @syscap SystemCapability.ArkUI.ArkUI.Full
29 * @since 10
30 */
31
32
33/**
34 * Declare ButtonOptions
35 * @syscap SystemCapability.ArkUI.ArkUI.Full
36 * @atomicservice
37 * @since 11
38 */
39export declare class ButtonOptions {
40  /**
41   * Sets the Display Content of a Button.
42   * @type { ResourceStr }.
43   * @syscap SystemCapability.ArkUI.ArkUI.Full
44   * @since 10
45   */
46  /**
47   * Sets the Display Content of a Button.
48   * @type { ResourceStr }.
49   * @syscap SystemCapability.ArkUI.ArkUI.Full
50   * @atomicservice
51   * @since 11
52   */
53  value: ResourceStr;
54  /**
55   * Sets the Button Callback.
56   * @type { ?() => void }.
57   * @syscap SystemCapability.ArkUI.ArkUI.Full
58   * @since 10
59   */
60  /**
61   * Sets the Button Callback.
62   * @type { ?() => void }.
63   * @syscap SystemCapability.ArkUI.ArkUI.Full
64   * @atomicservice
65   * @since 11
66   */
67  action?: () => void;
68  /**
69   * Sets the background color of a button.
70   * @type { ?ResourceStr }.
71   * @syscap SystemCapability.ArkUI.ArkUI.Full
72   * @since 10
73   */
74  /**
75   * Sets the background color of a button.
76   * @type { ?ResourceStr }.
77   * @syscap SystemCapability.ArkUI.ArkUI.Full
78   * @atomicservice
79   * @since 11
80   */
81  background?: ResourceColor;
82  /**
83   * Sets the Button Text Color.
84   * @type { ?ResourceStr }.
85   * @syscap SystemCapability.ArkUI.ArkUI.Full
86   * @since 10
87   */
88  /**
89   * Sets the Button Text Color.
90   * @type { ?ResourceStr }.
91   * @syscap SystemCapability.ArkUI.ArkUI.Full
92   * @atomicservice
93   * @since 11
94   */
95  fontColor?: ResourceColor;
96  /**
97   * Describes the Button style.
98   * @type { ?ButtonStyleMode }
99   * @default ButtonStyleMode.TEXTUAL
100   * @syscap SystemCapability.ArkUI.ArkUI.Full
101   * @crossplatform
102   * @atomicservice
103   * @since 12
104   */
105  buttonStyle?: ButtonStyleMode;
106  /**
107   * Describes the Button role.
108   * @type { ?ButtonRole }
109   * @default ButtonRole.NORMAL
110   * @syscap SystemCapability.ArkUI.ArkUI.Full
111   * @crossplatform
112   * @atomicservice
113   * @since 12
114   */
115  role?: ButtonRole;
116}
117/**
118 * Declare CustomDialog TipsDialog
119 * @syscap SystemCapability.ArkUI.ArkUI.Full
120 * @since 10
121 */
122/**
123 * Declare CustomDialog TipsDialog
124 * @syscap SystemCapability.ArkUI.ArkUI.Full
125 * @atomicservice
126 * @since 11
127 */
128@CustomDialog
129export declare struct TipsDialog {
130  /**
131   * Sets the TipsDialog Controller.
132   * @type { CustomDialogController }.
133   * @syscap SystemCapability.ArkUI.ArkUI.Full
134   * @since 10
135   */
136  /**
137   * Sets the TipsDialog Controller.
138   * @type { CustomDialogController }.
139   * @syscap SystemCapability.ArkUI.ArkUI.Full
140   * @atomicservice
141   * @since 11
142   */
143  controller: CustomDialogController;
144  /**
145   * Sets the TipsDialog imageRes.
146   * @type { Resource }.
147   * @syscap SystemCapability.ArkUI.ArkUI.Full
148   * @since 10
149   */
150  /**
151   * Sets the TipsDialog imageRes.
152   * @type { Resource }.
153   * @syscap SystemCapability.ArkUI.ArkUI.Full
154   * @atomicservice
155   * @since 11
156   */
157  /**
158   * Sets the TipsDialog imageRes.
159   * @type { ResourceStr | PixelMap }
160   * @syscap SystemCapability.ArkUI.ArkUI.Full
161   * @atomicservice
162   * @since 12
163   */
164  imageRes: ResourceStr | PixelMap;
165  /**
166   * Sets the TipsDialog image size.
167   * @type { SizeOptions }.
168   * @syscap SystemCapability.ArkUI.ArkUI.Full
169   * @since 10
170   */
171  /**
172   * Sets the TipsDialog image size.
173   * @type { SizeOptions }.
174   * @syscap SystemCapability.ArkUI.ArkUI.Full
175   * @atomicservice
176   * @since 11
177   */
178  /**
179   * Sets the TipsDialog image size.
180   * @type { ?SizeOptions }.
181   * @syscap SystemCapability.ArkUI.ArkUI.Full
182   * @atomicservice
183   * @since 12
184   */
185  imageSize?: SizeOptions;
186  /**
187   * Sets the TipsDialog title.
188   * @type { ResourceStr }.
189   * @syscap SystemCapability.ArkUI.ArkUI.Full
190   * @since 10
191   */
192  /**
193   * Sets the TipsDialog title.
194   * @type { ResourceStr }.
195   * @syscap SystemCapability.ArkUI.ArkUI.Full
196   * @atomicservice
197   * @since 11
198   */
199  /**
200   * Sets the TipsDialog title.
201   * @type { ?ResourceStr }.
202   * @syscap SystemCapability.ArkUI.ArkUI.Full
203   * @atomicservice
204   * @since 12
205   */
206  title?: ResourceStr;
207  /**
208   * Sets the TipsDialog content.
209   * @type { ?ResourceStr }.
210   * @syscap SystemCapability.ArkUI.ArkUI.Full
211   * @since 10
212   */
213  /**
214   * Sets the TipsDialog content.
215   * @type { ?ResourceStr }.
216   * @syscap SystemCapability.ArkUI.ArkUI.Full
217   * @atomicservice
218   * @since 11
219   */
220  content?: ResourceStr;
221  /**
222   * Sets the TipsDialog checkbox tips.
223   * @type { ?ResourceStr }.
224   * @syscap SystemCapability.ArkUI.ArkUI.Full
225   * @since 10
226   */
227  /**
228   * Sets the TipsDialog checkbox tips.
229   * @type { ?ResourceStr }.
230   * @syscap SystemCapability.ArkUI.ArkUI.Full
231   * @atomicservice
232   * @since 11
233   */
234  checkTips?: ResourceStr;
235  /**
236   * Sets the TipsDialog checkbox check state.
237   * @type { ?boolean }.
238   * @syscap SystemCapability.ArkUI.ArkUI.Full
239   * @since 10
240   */
241  /**
242   * Sets the TipsDialog checkbox check state.
243   * @type { ?boolean }.
244   * @syscap SystemCapability.ArkUI.ArkUI.Full
245   * @atomicservice
246   * @since 11
247   */
248  @Prop isChecked?: boolean;
249  /**
250   * Sets the TipsDialog CheckBox Callback.
251   * @type { ?(isChecked: boolean) => void }.
252   * @syscap SystemCapability.ArkUI.ArkUI.Full
253   * @atomicservice
254   * @since 12
255   */
256  checkAction?: (isChecked: boolean) => void;
257  /**
258   * Sets the TipsDialog primary button.
259   * @type { ?ButtonOptions }.
260   * @syscap SystemCapability.ArkUI.ArkUI.Full
261   * @since 10
262   */
263  /**
264   * Sets the TipsDialog primary button.
265   * @type { ?ButtonOptions }.
266   * @syscap SystemCapability.ArkUI.ArkUI.Full
267   * @atomicservice
268   * @since 11
269   */
270  primaryButton?: ButtonOptions;
271  /**
272   * Sets the TipsDialog secondary button.
273   * @type { ?ButtonOptions }.
274   * @syscap SystemCapability.ArkUI.ArkUI.Full
275   * @since 10
276   */
277  /**
278   * Sets the TipsDialog secondary button.
279   * @type { ?ButtonOptions }.
280   * @syscap SystemCapability.ArkUI.ArkUI.Full
281   * @atomicservice
282   * @since 11
283   */
284  secondaryButton?: ButtonOptions;
285  /**
286   * Custom Theme.
287   *
288   * @type { ?(Theme | CustomTheme) }
289   * @syscap SystemCapability.ArkUI.ArkUI.Full
290   * @crossplatform
291   * @atomicservice
292   * @since 12
293   */
294  theme?: Theme | CustomTheme;
295  /**
296   * Sets the TipsDialog dark or light Mode.
297   *
298   * @type { ?ThemeColorMode }
299   * @syscap SystemCapability.ArkUI.ArkUI.Full
300   * @crossplatform
301   * @atomicservice
302   * @since 12
303   */
304  themeColorMode?: ThemeColorMode;
305  /**
306   * Sets the TipsDialog CheckBox Callback.
307   * @type { ?Callback<boolean> }
308   * @syscap SystemCapability.ArkUI.ArkUI.Full
309   * @atomicservice
310   * @since 12
311   */
312  onCheckedChange?: Callback<boolean>;
313}
314
315/**
316 * Declare CustomDialog SelectDialog
317 * @syscap SystemCapability.ArkUI.ArkUI.Full
318 * @since 10
319 */
320/**
321 * Declare CustomDialog SelectDialog
322 * @syscap SystemCapability.ArkUI.ArkUI.Full
323 * @atomicservice
324 * @since 11
325 */
326@CustomDialog
327export declare struct SelectDialog {
328  /**
329   * Sets the SelectDialog Controller.
330   * @type { CustomDialogController }.
331   * @syscap SystemCapability.ArkUI.ArkUI.Full
332   * @since 10
333   */
334  /**
335   * Sets the SelectDialog Controller.
336   * @type { CustomDialogController }.
337   * @syscap SystemCapability.ArkUI.ArkUI.Full
338   * @atomicservice
339   * @since 11
340   */
341  controller: CustomDialogController;
342  /**
343   * Sets the SelectDialog title.
344   * @type { ResourceStr }.
345   * @syscap SystemCapability.ArkUI.ArkUI.Full
346   * @since 10
347   */
348  /**
349   * Sets the SelectDialog title.
350   * @type { ResourceStr }.
351   * @syscap SystemCapability.ArkUI.ArkUI.Full
352   * @atomicservice
353   * @since 11
354   */
355  title: ResourceStr;
356  /**
357   * Sets the SelectDialog content.
358   * @type { ?ResourceStr }.
359   * @syscap SystemCapability.ArkUI.ArkUI.Full
360   * @since 10
361   */
362  /**
363   * Sets the SelectDialog content.
364   * @type { ?ResourceStr }.
365   * @syscap SystemCapability.ArkUI.ArkUI.Full
366   * @atomicservice
367   * @since 11
368   */
369  content?: ResourceStr;
370  /**
371   * Sets the SelectDialog selected index.
372   * @type { ?number }.
373   * @syscap SystemCapability.ArkUI.ArkUI.Full
374   * @since 10
375   */
376  /**
377   * Sets the SelectDialog selected index.
378   * @type { ?number }.
379   * @syscap SystemCapability.ArkUI.ArkUI.Full
380   * @atomicservice
381   * @since 11
382   */
383  selectedIndex?: number;
384  /**
385   * Sets the SelectDialog confirm button.
386   * @type { ?ButtonOptions }.
387   * @syscap SystemCapability.ArkUI.ArkUI.Full
388   * @since 10
389   */
390  /**
391   * Sets the SelectDialog confirm button.
392   * @type { ?ButtonOptions }.
393   * @syscap SystemCapability.ArkUI.ArkUI.Full
394   * @atomicservice
395   * @since 11
396   */
397  confirm?: ButtonOptions;
398  /**
399   * Sets the SelectDialog sheets.
400   * @type { Array<SheetInfo> }.
401   * @syscap SystemCapability.ArkUI.ArkUI.Full
402   * @since 10
403   */
404  /**
405   * Sets the SelectDialog sheets.
406   * @type { Array<SheetInfo> }.
407   * @syscap SystemCapability.ArkUI.ArkUI.Full
408   * @atomicservice
409   * @since 11
410   */
411  radioContent: Array<SheetInfo>;
412  /**
413   * Custom Theme.
414   *
415   * @type { ?(Theme | CustomTheme) }
416   * @syscap SystemCapability.ArkUI.ArkUI.Full
417   * @crossplatform
418   * @atomicservice
419   * @since 12
420   */
421  theme?: Theme | CustomTheme;
422  /**
423   * Sets the SelectDialog dark or light Mode.
424   *
425   * @type { ?ThemeColorMode }
426   * @syscap SystemCapability.ArkUI.ArkUI.Full
427   * @crossplatform
428   * @atomicservice
429   * @since 12
430   */
431  themeColorMode?: ThemeColorMode;
432}
433
434/**
435 * Declare CustomDialog ConfirmDialog
436 * @syscap SystemCapability.ArkUI.ArkUI.Full
437 * @since 10
438 */
439/**
440 * Declare CustomDialog ConfirmDialog
441 * @syscap SystemCapability.ArkUI.ArkUI.Full
442 * @atomicservice
443 * @since 11
444 */
445@CustomDialog
446export declare struct ConfirmDialog {
447  /**
448   * Sets the ConfirmDialog Controller.
449   * @type { CustomDialogController }.
450   * @syscap SystemCapability.ArkUI.ArkUI.Full
451   * @since 10
452   */
453  /**
454   * Sets the ConfirmDialog Controller.
455   * @type { CustomDialogController }.
456   * @syscap SystemCapability.ArkUI.ArkUI.Full
457   * @atomicservice
458   * @since 11
459   */
460  controller: CustomDialogController;
461  /**
462   * Sets the ConfirmDialog title.
463   * @type { ResourceStr }.
464   * @syscap SystemCapability.ArkUI.ArkUI.Full
465   * @since 10
466   */
467  /**
468   * Sets the ConfirmDialog title.
469   * @type { ResourceStr }.
470   * @syscap SystemCapability.ArkUI.ArkUI.Full
471   * @atomicservice
472   * @since 11
473   */
474  title: ResourceStr;
475  /**
476   * Sets the ConfirmDialog content.
477   * @type { ?ResourceStr }.
478   * @syscap SystemCapability.ArkUI.ArkUI.Full
479   * @since 10
480   */
481  /**
482   * Sets the ConfirmDialog content.
483   * @type { ?ResourceStr }.
484   * @syscap SystemCapability.ArkUI.ArkUI.Full
485   * @atomicservice
486   * @since 11
487   */
488  content?: ResourceStr;
489  /**
490   * Sets the ConfirmDialog checkbox tips.
491   * @type { ?ResourceStr }.
492   * @syscap SystemCapability.ArkUI.ArkUI.Full
493   * @since 10
494   */
495  /**
496   * Sets the ConfirmDialog checkbox tips.
497   * @type { ?ResourceStr }.
498   * @syscap SystemCapability.ArkUI.ArkUI.Full
499   * @atomicservice
500   * @since 11
501   */
502  checkTips?: ResourceStr;
503  /**
504   * Sets the ConfirmDialog checkbox state.
505   * @type { ?boolean }.
506   * @syscap SystemCapability.ArkUI.ArkUI.Full
507   * @since 10
508   */
509  /**
510   * Sets the ConfirmDialog checkbox state.
511   * @type { ?boolean }.
512   * @syscap SystemCapability.ArkUI.ArkUI.Full
513   * @atomicservice
514   * @since 11
515   */
516  @Prop isChecked?: boolean;
517  /**
518   * Sets the ConfirmDialog primary button.
519   * @type { ?ButtonOptions }.
520   * @syscap SystemCapability.ArkUI.ArkUI.Full
521   * @since 10
522   */
523  /**
524   * Sets the ConfirmDialog primary button.
525   * @type { ?ButtonOptions }.
526   * @syscap SystemCapability.ArkUI.ArkUI.Full
527   * @atomicservice
528   * @since 11
529   */
530  primaryButton?: ButtonOptions;
531  /**
532   * Sets the ConfirmDialog secondary button.
533   * @type { ?ButtonOptions }.
534   * @syscap SystemCapability.ArkUI.ArkUI.Full
535   * @since 10
536   */
537  /**
538   * Sets the ConfirmDialog secondary button.
539   * @type { ?ButtonOptions }.
540   * @syscap SystemCapability.ArkUI.ArkUI.Full
541   * @atomicservice
542   * @since 11
543   */
544  secondaryButton?: ButtonOptions;
545  /**
546   * Custom Theme.
547   *
548   * @type { ?(Theme | CustomTheme) }
549   * @syscap SystemCapability.ArkUI.ArkUI.Full
550   * @crossplatform
551   * @atomicservice
552   * @since 12
553   */
554  theme?: Theme | CustomTheme;
555  /**
556   * Sets the ConfirmDialog dark or light Mode.
557   *
558   * @type { ?ThemeColorMode }
559   * @syscap SystemCapability.ArkUI.ArkUI.Full
560   * @crossplatform
561   * @atomicservice
562   * @since 12
563   */
564  themeColorMode?: ThemeColorMode;
565  /**
566   * Sets the ConfirmDialog CheckBox Callback.
567   * @type { ?Callback<boolean> }
568   * @syscap SystemCapability.ArkUI.ArkUI.Full
569   * @atomicservice
570   * @since 12
571   */
572  onCheckedChange?: Callback<boolean>;
573}
574
575/**
576 * Declare CustomDialog AlertDialog
577 * @syscap SystemCapability.ArkUI.ArkUI.Full
578 * @since 10
579 */
580/**
581 * Declare CustomDialog AlertDialog
582 * @syscap SystemCapability.ArkUI.ArkUI.Full
583 * @atomicservice
584 * @since 11
585 */
586@CustomDialog
587export declare struct AlertDialog {
588  /**
589   * Sets the AlertDialog Controller.
590   * @type { CustomDialogController }.
591   * @syscap SystemCapability.ArkUI.ArkUI.Full
592   * @since 10
593   */
594  /**
595   * Sets the AlertDialog Controller.
596   * @type { CustomDialogController }.
597   * @syscap SystemCapability.ArkUI.ArkUI.Full
598   * @atomicservice
599   * @since 11
600   */
601  controller: CustomDialogController;
602  /**
603   * Sets the AlertDialog title.
604   * @type { ?ResourceStr }
605   * @syscap SystemCapability.ArkUI.ArkUI.Full
606   * @crossplatform
607   * @atomicservice
608   * @since 12
609   */
610  primaryTitle?: ResourceStr;
611  /**
612   * Sets the AlertDialog secondary title.
613   * @type { ?ResourceStr }
614   * @syscap SystemCapability.ArkUI.ArkUI.Full
615   * @crossplatform
616   * @atomicservice
617   * @since 12
618   */
619  secondaryTitle?: ResourceStr;
620  /**
621   * Sets the AlertDialog content.
622   * @type { ResourceStr }.
623   * @syscap SystemCapability.ArkUI.ArkUI.Full
624   * @since 10
625   */
626  /**
627   * Sets the AlertDialog content.
628   * @type { ResourceStr }.
629   * @syscap SystemCapability.ArkUI.ArkUI.Full
630   * @atomicservice
631   * @since 11
632   */
633  content: ResourceStr;
634  /**
635   * Sets the AlertDialog primary button.
636   * @type { ?ButtonOptions }.
637   * @syscap SystemCapability.ArkUI.ArkUI.Full
638   * @since 10
639   */
640  /**
641   * Sets the AlertDialog primary button.
642   * @type { ?ButtonOptions }.
643   * @syscap SystemCapability.ArkUI.ArkUI.Full
644   * @atomicservice
645   * @since 11
646   */
647  primaryButton?: ButtonOptions;
648  /**
649   * Sets the AlertDialog secondary button.
650   * @type { ?ButtonOptions }.
651   * @syscap SystemCapability.ArkUI.ArkUI.Full
652   * @since 10
653   */
654  /**
655   * Sets the AlertDialog secondary button.
656   * @type { ?ButtonOptions }.
657   * @syscap SystemCapability.ArkUI.ArkUI.Full
658   * @atomicservice
659   * @since 11
660   */
661  secondaryButton?: ButtonOptions;
662  /**
663   * Custom Theme.
664   *
665   * @type { ?(Theme | CustomTheme) }
666   * @syscap SystemCapability.ArkUI.ArkUI.Full
667   * @crossplatform
668   * @atomicservice
669   * @since 12
670   */
671  theme?: Theme | CustomTheme;
672  /**
673   * Sets the AlertDialog dark or light Mode.
674   *
675   * @type { ?ThemeColorMode }
676   * @syscap SystemCapability.ArkUI.ArkUI.Full
677   * @crossplatform
678   * @atomicservice
679   * @since 12
680   */
681  themeColorMode?: ThemeColorMode;
682}
683
684/**
685 * Declare CustomDialog LoadingDialog
686 * @syscap SystemCapability.ArkUI.ArkUI.Full
687 * @since 10
688 */
689/**
690 * Declare CustomDialog LoadingDialog
691 * @syscap SystemCapability.ArkUI.ArkUI.Full
692 * @atomicservice
693 * @since 11
694 */
695@CustomDialog
696export declare struct LoadingDialog {
697  /**
698   * Sets the LoadingDialog Controller.
699   * @type { CustomDialogController }.
700   * @syscap SystemCapability.ArkUI.ArkUI.Full
701   * @since 10
702   */
703  /**
704   * Sets the LoadingDialog Controller.
705   * @type { CustomDialogController }.
706   * @syscap SystemCapability.ArkUI.ArkUI.Full
707   * @atomicservice
708   * @since 11
709   */
710  Controller: CustomDialogController;
711  /**
712   * Sets the LoadingDialog content.
713   * @type { ?ResourceStr }.
714   * @syscap SystemCapability.ArkUI.ArkUI.Full
715   * @since 10
716   */
717  /**
718   * Sets the LoadingDialog content.
719   * @type { ?ResourceStr }.
720   * @syscap SystemCapability.ArkUI.ArkUI.Full
721   * @atomicservice
722   * @since 11
723   */
724  content?: ResourceStr;
725  /**
726   * Custom Theme.
727   *
728   * @type { ?(Theme | CustomTheme) }
729   * @syscap SystemCapability.ArkUI.ArkUI.Full
730   * @crossplatform
731   * @atomicservice
732   * @since 12
733   */
734  theme?: Theme | CustomTheme;
735  /**
736   * Sets the LoadingDialog dark or light Mode.
737   *
738   * @type { ?ThemeColorMode }
739   * @syscap SystemCapability.ArkUI.ArkUI.Full
740   * @crossplatform
741   * @atomicservice
742   * @since 12
743   */
744  themeColorMode?: ThemeColorMode;
745}
746
747/**
748 * Declare custom content dialog
749 * @syscap SystemCapability.ArkUI.ArkUI.Full
750 * @crossplatform
751 * @atomicservice
752 * @since 12
753 */
754@CustomDialog
755export declare struct CustomContentDialog {
756  /**
757   * Sets the CustomContentDialog Controller.
758   * @type { CustomDialogController }.
759   * @syscap SystemCapability.ArkUI.ArkUI.Full
760   * @crossplatform
761   * @atomicservice
762   * @since 12
763   */
764  controller: CustomDialogController;
765  /**
766   * Sets the CustomContentDialog title.
767   * @type { ?ResourceStr }
768   * @syscap SystemCapability.ArkUI.ArkUI.Full
769   * @crossplatform
770   * @atomicservice
771   * @since 12
772   */
773  primaryTitle?: ResourceStr;
774  /**
775   * Sets the CustomContentDialog secondary title.
776   * @type { ?ResourceStr }
777   * @syscap SystemCapability.ArkUI.ArkUI.Full
778   * @crossplatform
779   * @atomicservice
780   * @since 12
781   */
782  secondaryTitle?: ResourceStr;
783  /**
784   * Sets the CustomContentDialog content.
785   * @type { () => void }
786   * @syscap SystemCapability.ArkUI.ArkUI.Full
787   * @crossplatform
788   * @atomicservice
789   * @since 12
790   */
791  @BuilderParam contentBuilder: () => void;
792  /**
793   * Sets the CustomContentDialog content area padding.
794   * @type { ?Padding }
795   * @syscap SystemCapability.ArkUI.ArkUI.Full
796   * @crossplatform
797   * @atomicservice
798   * @since 12
799   */
800  contentAreaPadding?: Padding;
801  /**
802     * Sets the CustomContentDialog content area localized padding.
803     * @type { ?LocalizedPadding }
804     * @syscap SystemCapability.ArkUI.ArkUI.Full
805     * @crossplatform
806     * @atomicservice
807     * @since 12
808     */
809  localizedContentAreaPadding?: LocalizedPadding;
810  /**
811   * Sets the CustomContentDialog buttons.
812   * @type { ?ButtonOptions[] }
813   * @syscap SystemCapability.ArkUI.ArkUI.Full
814   * @crossplatform
815   * @atomicservice
816   * @since 12
817   */
818  buttons?: ButtonOptions[];
819  /**
820   * Custom Theme.
821   *
822   * @type { ?(Theme | CustomTheme) }
823   * @syscap SystemCapability.ArkUI.ArkUI.Full
824   * @crossplatform
825   * @atomicservice
826   * @since 12
827   */
828  theme?: Theme | CustomTheme;
829  /**
830   * Sets the CustomContentDialog dark or light Mode.
831   *
832   * @type { ?ThemeColorMode }
833   * @syscap SystemCapability.ArkUI.ArkUI.Full
834   * @crossplatform
835   * @atomicservice
836   * @since 12
837   */
838  themeColorMode?: ThemeColorMode;
839}
840
841/**
842 * Declare struct PopoverDialog
843 *
844 * @syscap SystemCapability.ArkUI.ArkUI.Full
845 * @crossplatform
846 * @atomicservice
847 * @since 14
848 */
849@Component
850export declare struct PopoverDialog {
851  /**
852   * Sets the PopoverDialog Visible Status.
853   *
854   * @type { boolean }
855   * @syscap SystemCapability.ArkUI.ArkUI.Full
856   * @crossplatform
857   * @atomicservice
858   * @since 14
859   */
860  @Link
861  visible: boolean;
862  /**
863   * Sets the PopoverDialog options.
864   *
865   * @type { PopoverOptions }
866   * @syscap SystemCapability.ArkUI.ArkUI.Full
867   * @crossplatform
868   * @atomicservice
869   * @since 14
870   */
871  @Require @Prop
872  popover: PopoverOptions;
873  /**
874   * Sets the targetBuilder content.
875   *
876   * @type { Callback<void> }
877   * @syscap SystemCapability.ArkUI.ArkUI.Full
878   * @crossplatform
879   * @atomicservice
880   * @since 14
881   */
882  @Require @BuilderParam
883  targetBuilder: Callback<void>;
884}
885
886/**
887 * Defines PopoverDialog Options
888 *
889 * @typedef PopoverOptions
890 * @extends CustomPopupOptions
891 * @syscap SystemCapability.ArkUI.ArkUI.Full
892 * @crossplatform
893 * @atomicservice
894 * @since 14
895 */
896export declare interface PopoverOptions extends CustomPopupOptions {
897}
898