• 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 declare of selectOption.
23 *
24 * @interface SelectOption
25 * @syscap SystemCapability.ArkUI.ArkUI.Full
26 * @since 8
27 */
28/**
29 * The declare of selectOption.
30 *
31 * @interface SelectOption
32 * @syscap SystemCapability.ArkUI.ArkUI.Full
33 * @crossplatform
34 * @since 10
35 */
36/**
37 * The declare of selectOption.
38 *
39 * @interface SelectOption
40 * @syscap SystemCapability.ArkUI.ArkUI.Full
41 * @crossplatform
42 * @atomicservice
43 * @since 11
44 */
45declare interface SelectOption {
46  /**
47   * Option string.
48   *
49   * @type { ResourceStr }
50   * @syscap SystemCapability.ArkUI.ArkUI.Full
51   * @since 8
52   */
53  /**
54   * Option string.
55   *
56   * @type { ResourceStr }
57   * @syscap SystemCapability.ArkUI.ArkUI.Full
58   * @crossplatform
59   * @since 10
60   */
61  /**
62   * Option string.
63   *
64   * @type { ResourceStr }
65   * @syscap SystemCapability.ArkUI.ArkUI.Full
66   * @crossplatform
67   * @atomicservice
68   * @since 11
69   */
70  value: ResourceStr;
71
72  /**
73   * Option icon.
74   *
75   * @type { ?ResourceStr }
76   * @syscap SystemCapability.ArkUI.ArkUI.Full
77   * @since 8
78   */
79  /**
80   * Option icon.
81   *
82   * @type { ?ResourceStr }
83   * @syscap SystemCapability.ArkUI.ArkUI.Full
84   * @crossplatform
85   * @since 10
86   */
87  /**
88   * Option icon.
89   *
90   * @type { ?ResourceStr }
91   * @syscap SystemCapability.ArkUI.ArkUI.Full
92   * @crossplatform
93   * @atomicservice
94   * @since 11
95   */
96  icon?: ResourceStr;
97
98  /**
99   * Indicates the symbol icon of this menu item.
100   *
101   * @type { ?SymbolGlyphModifier }
102   * @syscap SystemCapability.ArkUI.ArkUI.Full
103   * @crossplatform
104   * @atomicservice
105   * @since 12
106   */
107  symbolIcon?: SymbolGlyphModifier;
108}
109
110/**
111 * Provides the select interface.
112 *
113 * @interface SelectInterface
114 * @syscap SystemCapability.ArkUI.ArkUI.Full
115 * @since 8
116 */
117/**
118 * Provides the select interface.
119 *
120 * @interface SelectInterface
121 * @syscap SystemCapability.ArkUI.ArkUI.Full
122 * @crossplatform
123 * @since 10
124 */
125/**
126 * Provides the select interface.
127 *
128 * @interface SelectInterface
129 * @syscap SystemCapability.ArkUI.ArkUI.Full
130 * @crossplatform
131 * @atomicservice
132 * @since 11
133 */
134interface SelectInterface {
135  /**
136   * Called when the select is set.
137   *
138   * @param { Array<SelectOption> } options
139   * @returns { SelectAttribute }
140   * @syscap SystemCapability.ArkUI.ArkUI.Full
141   * @since 8
142   */
143  /**
144   * Called when the select is set.
145   *
146   * @param { Array<SelectOption> } options
147   * @returns { SelectAttribute }
148   * @syscap SystemCapability.ArkUI.ArkUI.Full
149   * @crossplatform
150   * @since 10
151   */
152  /**
153   * Called when the select is set.
154   *
155   * @param { Array<SelectOption> } options
156   * @returns { SelectAttribute }
157   * @syscap SystemCapability.ArkUI.ArkUI.Full
158   * @crossplatform
159   * @atomicservice
160   * @since 11
161   */
162  (options: Array<SelectOption>): SelectAttribute;
163}
164
165/**
166 * The enum for arrow position in the select
167 *
168 * @enum { number }
169 * @syscap SystemCapability.ArkUI.ArkUI.Full
170 * @crossplatform
171 * @since 10
172 */
173/**
174 * The enum for arrow position in the select
175 *
176 * @enum { number }
177 * @syscap SystemCapability.ArkUI.ArkUI.Full
178 * @crossplatform
179 * @atomicservice
180 * @since 11
181 */
182declare enum ArrowPosition {
183  /**
184   * The value of arrow position end
185   *
186   * @syscap SystemCapability.ArkUI.ArkUI.Full
187   * @crossplatform
188   * @since 10
189   */
190  /**
191   * The value of arrow position end
192   *
193   * @syscap SystemCapability.ArkUI.ArkUI.Full
194   * @crossplatform
195   * @atomicservice
196   * @since 11
197   */
198  END = 0,
199
200  /**
201   * The value of arrow position start
202   *
203   * @syscap SystemCapability.ArkUI.ArkUI.Full
204   * @crossplatform
205   * @since 10
206   */
207  /**
208   * The value of arrow position start
209   *
210   * @syscap SystemCapability.ArkUI.ArkUI.Full
211   * @crossplatform
212   * @atomicservice
213   * @since 11
214   */
215  START = 1
216}
217
218/**
219 * The type of alignment between select and menu.
220 *
221 * @enum { number }
222 * @syscap SystemCapability.ArkUI.ArkUI.Full
223 * @since 10
224 */
225/**
226 * The type of alignment between select and menu.
227 *
228 * @enum { number }
229 * @syscap SystemCapability.ArkUI.ArkUI.Full
230 * @crossplatform
231 * @atomicservice
232 * @since 11
233 */
234declare enum MenuAlignType {
235  /**
236   * The value of menu align type start.
237   *
238   * @syscap SystemCapability.ArkUI.ArkUI.Full
239   * @since 10
240   */
241  /**
242   * The value of menu align type start.
243   *
244   * @syscap SystemCapability.ArkUI.ArkUI.Full
245   * @crossplatform
246   * @atomicservice
247   * @since 11
248   */
249  START,
250  /**
251   * The value of menu align type center.
252   *
253   * @syscap SystemCapability.ArkUI.ArkUI.Full
254   * @since 10
255   */
256  /**
257   * The value of menu align type center.
258   *
259   * @syscap SystemCapability.ArkUI.ArkUI.Full
260   * @crossplatform
261   * @atomicservice
262   * @since 11
263   */
264  CENTER,
265  /**
266   * The value of menu align type end.
267   *
268   * @syscap SystemCapability.ArkUI.ArkUI.Full
269   * @since 10
270   */
271  /**
272   * The value of menu align type end.
273   *
274   * @syscap SystemCapability.ArkUI.ArkUI.Full
275   * @crossplatform
276   * @atomicservice
277   * @since 11
278   */
279  END
280}
281
282/**
283 * The commonMethod of select.
284 *
285 * @extends CommonMethod<SelectAttribute>
286 * @syscap SystemCapability.ArkUI.ArkUI.Full
287 * @since 8
288 */
289/**
290 * The commonMethod of select.
291 *
292 * @extends CommonMethod<SelectAttribute>
293 * @syscap SystemCapability.ArkUI.ArkUI.Full
294 * @crossplatform
295 * @since 10
296 */
297/**
298 * The commonMethod of select.
299 *
300 * @extends CommonMethod<SelectAttribute>
301 * @syscap SystemCapability.ArkUI.ArkUI.Full
302 * @crossplatform
303 * @atomicservice
304 * @since 11
305 */
306declare class SelectAttribute extends CommonMethod<SelectAttribute> {
307  /**
308   * Sets the serial number of the select item, starting from 0.
309   *
310   * @param { number } value
311   * @returns { SelectAttribute }
312   * @syscap SystemCapability.ArkUI.ArkUI.Full
313   * @since 8
314   */
315  /**
316   * Sets the serial number of the select item, starting from 0.
317   *
318   * @param { number } value
319   * @returns { SelectAttribute }
320   * @syscap SystemCapability.ArkUI.ArkUI.Full
321   * @crossplatform
322   * @since 10
323   */
324  /**
325   * Sets the serial number of the select item, starting from 0.
326   *
327   * @param { number | Resource } value - the serial number of the select item.
328   * @returns { SelectAttribute } the attribute of the select.
329   * @syscap SystemCapability.ArkUI.ArkUI.Full
330   * @crossplatform
331   * @atomicservice
332   * @since 11
333   */
334  selected(value: number | Resource): SelectAttribute;
335
336  /**
337   * Sets the text display of the select button itself.
338   *
339   * @param { string } value
340   * @returns { SelectAttribute }
341   * @syscap SystemCapability.ArkUI.ArkUI.Full
342   * @since 8
343   */
344  /**
345   * Sets the text display of the select button itself.
346   *
347   * @param { string } value
348   * @returns { SelectAttribute }
349   * @syscap SystemCapability.ArkUI.ArkUI.Full
350   * @crossplatform
351   * @since 10
352   */
353  /**
354   * Sets the text display of the select button itself.
355   *
356   * @param { ResourceStr } value - the text display of the select button itself.
357   * @returns { SelectAttribute } the attribute of the select.
358   * @syscap SystemCapability.ArkUI.ArkUI.Full
359   * @crossplatform
360   * @atomicservice
361   * @since 11
362   */
363  value(value: ResourceStr): SelectAttribute;
364
365  /**
366   * Sets the text properties of the select button itself.
367   *
368   * @param { Font } value
369   * @returns { SelectAttribute }
370   * @syscap SystemCapability.ArkUI.ArkUI.Full
371   * @since 8
372   */
373  /**
374   * Sets the text properties of the select button itself.
375   *
376   * @param { Font } value
377   * @returns { SelectAttribute }
378   * @syscap SystemCapability.ArkUI.ArkUI.Full
379   * @crossplatform
380   * @since 10
381   */
382  /**
383   * Sets the text properties of the select button itself.
384   *
385   * @param { Font } value
386   * @returns { SelectAttribute }
387   * @syscap SystemCapability.ArkUI.ArkUI.Full
388   * @crossplatform
389   * @atomicservice
390   * @since 11
391   */
392  font(value: Font): SelectAttribute;
393
394  /**
395   * Sets the text color of the select button itself.
396   *
397   * @param { ResourceColor } value
398   * @returns { SelectAttribute }
399   * @syscap SystemCapability.ArkUI.ArkUI.Full
400   * @since 8
401   */
402  /**
403   * Sets the text color of the select button itself.
404   *
405   * @param { ResourceColor } value
406   * @returns { SelectAttribute }
407   * @syscap SystemCapability.ArkUI.ArkUI.Full
408   * @crossplatform
409   * @since 10
410   */
411  /**
412   * Sets the text color of the select button itself.
413   *
414   * @param { ResourceColor } value
415   * @returns { SelectAttribute }
416   * @syscap SystemCapability.ArkUI.ArkUI.Full
417   * @crossplatform
418   * @atomicservice
419   * @since 11
420   */
421  fontColor(value: ResourceColor): SelectAttribute;
422
423  /**
424   * Sets the background color of the selected items in the select.
425   *
426   * @param { ResourceColor } value
427   * @returns { SelectAttribute }
428   * @syscap SystemCapability.ArkUI.ArkUI.Full
429   * @since 8
430   */
431  /**
432   * Sets the background color of the selected items in the select.
433   *
434   * @param { ResourceColor } value
435   * @returns { SelectAttribute }
436   * @syscap SystemCapability.ArkUI.ArkUI.Full
437   * @crossplatform
438   * @since 10
439   */
440  /**
441   * Sets the background color of the selected items in the select.
442   *
443   * @param { ResourceColor } value
444   * @returns { SelectAttribute }
445   * @syscap SystemCapability.ArkUI.ArkUI.Full
446   * @crossplatform
447   * @atomicservice
448   * @since 11
449   */
450  selectedOptionBgColor(value: ResourceColor): SelectAttribute;
451
452  /**
453   * Sets the text style of the selected items in the select.
454   *
455   * @param { Font } value
456   * @returns { SelectAttribute }
457   * @syscap SystemCapability.ArkUI.ArkUI.Full
458   * @since 8
459   */
460  /**
461   * Sets the text style of the selected items in the select.
462   *
463   * @param { Font } value
464   * @returns { SelectAttribute }
465   * @syscap SystemCapability.ArkUI.ArkUI.Full
466   * @crossplatform
467   * @since 10
468   */
469  /**
470   * Sets the text style of the selected items in the select.
471   *
472   * @param { Font } value
473   * @returns { SelectAttribute }
474   * @syscap SystemCapability.ArkUI.ArkUI.Full
475   * @crossplatform
476   * @atomicservice
477   * @since 11
478   */
479  selectedOptionFont(value: Font): SelectAttribute;
480
481  /**
482   * Sets the text color of the selected item in the select.
483   *
484   * @param { ResourceColor } value
485   * @returns { SelectAttribute }
486   * @syscap SystemCapability.ArkUI.ArkUI.Full
487   * @since 8
488   */
489  /**
490   * Sets the text color of the selected item in the select.
491   *
492   * @param { ResourceColor } value
493   * @returns { SelectAttribute }
494   * @syscap SystemCapability.ArkUI.ArkUI.Full
495   * @crossplatform
496   * @since 10
497   */
498  /**
499   * Sets the text color of the selected item in the select.
500   *
501   * @param { ResourceColor } value
502   * @returns { SelectAttribute }
503   * @syscap SystemCapability.ArkUI.ArkUI.Full
504   * @crossplatform
505   * @atomicservice
506   * @since 11
507   */
508  selectedOptionFontColor(value: ResourceColor): SelectAttribute;
509
510  /**
511   * Sets the background color of the select item.
512   *
513   * @param { ResourceColor } value
514   * @returns { SelectAttribute }
515   * @syscap SystemCapability.ArkUI.ArkUI.Full
516   * @since 8
517   */
518  /**
519   * Sets the background color of the select item.
520   *
521   * @param { ResourceColor } value
522   * @returns { SelectAttribute }
523   * @syscap SystemCapability.ArkUI.ArkUI.Full
524   * @crossplatform
525   * @since 10
526   */
527  /**
528   * Sets the background color of the select item.
529   *
530   * @param { ResourceColor } value
531   * @returns { SelectAttribute }
532   * @syscap SystemCapability.ArkUI.ArkUI.Full
533   * @crossplatform
534   * @atomicservice
535   * @since 11
536   */
537  optionBgColor(value: ResourceColor): SelectAttribute;
538
539  /**
540   * Sets the text style for select items.
541   *
542   * @param { Font } value
543   * @returns { SelectAttribute }
544   * @syscap SystemCapability.ArkUI.ArkUI.Full
545   * @since 8
546   */
547  /**
548   * Sets the text style for select items.
549   *
550   * @param { Font } value
551   * @returns { SelectAttribute }
552   * @syscap SystemCapability.ArkUI.ArkUI.Full
553   * @crossplatform
554   * @since 10
555   */
556  /**
557   * Sets the text style for select items.
558   *
559   * @param { Font } value
560   * @returns { SelectAttribute }
561   * @syscap SystemCapability.ArkUI.ArkUI.Full
562   * @crossplatform
563   * @atomicservice
564   * @since 11
565   */
566  optionFont(value: Font): SelectAttribute;
567
568  /**
569   * Sets the text color for select items.
570   *
571   * @param { ResourceColor } value
572   * @returns { SelectAttribute }
573   * @syscap SystemCapability.ArkUI.ArkUI.Full
574   * @since 8
575   */
576  /**
577   * Sets the text color for select items.
578   *
579   * @param { ResourceColor } value
580   * @returns { SelectAttribute }
581   * @syscap SystemCapability.ArkUI.ArkUI.Full
582   * @crossplatform
583   * @since 10
584   */
585  /**
586   * Sets the text color for select items.
587   *
588   * @param { ResourceColor } value
589   * @returns { SelectAttribute }
590   * @syscap SystemCapability.ArkUI.ArkUI.Full
591   * @crossplatform
592   * @atomicservice
593   * @since 11
594   */
595  optionFontColor(value: ResourceColor): SelectAttribute;
596
597  /**
598   * Callback for selecting an item from the select.
599   *
600   * @param { function } callback
601   * @returns { SelectAttribute }
602   * @syscap SystemCapability.ArkUI.ArkUI.Full
603   * @since 8
604   */
605  /**
606   * Callback for selecting an item from the select.
607   *
608   * @param { function } callback
609   * @returns { SelectAttribute }
610   * @syscap SystemCapability.ArkUI.ArkUI.Full
611   * @crossplatform
612   * @since 10
613   */
614  /**
615   * Callback for selecting an item from the select.
616   *
617   * @param { function } callback
618   * @returns { SelectAttribute }
619   * @syscap SystemCapability.ArkUI.ArkUI.Full
620   * @crossplatform
621   * @atomicservice
622   * @since 11
623   */
624  onSelect(callback: (index: number, value: string) => void): SelectAttribute;
625
626  /**
627   * Set the space for text and icon in select
628   *
629   * @param { Length } value - indicates the length of the space
630   * @returns { SelectAttribute }
631   * @syscap SystemCapability.ArkUI.ArkUI.Full
632   * @crossplatform
633   * @since 10
634   */
635  /**
636   * Set the space for text and icon in select
637   *
638   * @param { Length } value - indicates the length of the space
639   * @returns { SelectAttribute }
640   * @syscap SystemCapability.ArkUI.ArkUI.Full
641   * @crossplatform
642   * @atomicservice
643   * @since 11
644   */
645  space(value: Length): SelectAttribute;
646
647  /**
648   * Set the layout direction for text and arrow in select
649   *
650   * @param { ArrowPosition } value - indicates the arrow position in the select
651   * @returns { SelectAttribute }
652   * @syscap SystemCapability.ArkUI.ArkUI.Full
653   * @crossplatform
654   * @since 10
655   */
656  /**
657   * Set the layout direction for text and arrow in select
658   *
659   * @param { ArrowPosition } value - indicates the arrow position in the select
660   * @returns { SelectAttribute }
661   * @syscap SystemCapability.ArkUI.ArkUI.Full
662   * @crossplatform
663   * @atomicservice
664   * @since 11
665   */
666  arrowPosition(value: ArrowPosition): SelectAttribute;
667
668  /**
669   * Set the alignment between select and menu.
670   *
671   * @param { MenuAlignType } alignType - The type of alignment between select and menu.
672   * @param { Offset } offset - The offset between select and menu.
673   * @returns { SelectAttribute } the attribute of the select.
674   * @syscap SystemCapability.ArkUI.ArkUI.Full
675   * @since 10
676   */
677  /**
678   * Set the alignment between select and menu.
679   *
680   * @param { MenuAlignType } alignType - The type of alignment between select and menu.
681   * @param { Offset } offset - The offset between select and menu.
682   * @returns { SelectAttribute } the attribute of the select.
683   * @syscap SystemCapability.ArkUI.ArkUI.Full
684   * @crossplatform
685   * @atomicservice
686   * @since 11
687   */
688  menuAlign(alignType: MenuAlignType, offset?: Offset): SelectAttribute;
689
690  /**
691   * Set the width of each option and set whether the option width fit the trigger.
692   *
693   * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content.
694   * @returns { SelectAttribute } the attribute of the select.
695   * @syscap SystemCapability.ArkUI.ArkUI.Full
696   * @crossplatform
697   * @since 11
698   */
699  /**
700   * Set the width of each option and set whether the option width fit the trigger.
701   *
702   * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content.
703   * @returns { SelectAttribute } the attribute of the select.
704   * @syscap SystemCapability.ArkUI.ArkUI.Full
705   * @crossplatform
706   * @atomicservice
707   * @since 12
708   */
709  optionWidth(value: Dimension | OptionWidthMode ): SelectAttribute;
710
711  /**
712   * Set the height of each option.
713   *
714   * @param { Dimension } value - The length of option height.
715   * @returns { SelectAttribute } the attribute of the select.
716   * @syscap SystemCapability.ArkUI.ArkUI.Full
717   * @crossplatform
718   * @since 11
719   */
720  /**
721   * Set the height of each option.
722   *
723   * @param { Dimension } value - The length of option height.
724   * @returns { SelectAttribute } the attribute of the select.
725   * @syscap SystemCapability.ArkUI.ArkUI.Full
726   * @crossplatform
727   * @atomicservice
728   * @since 12
729   */
730  optionHeight(value: Dimension): SelectAttribute;
731
732  /**
733   * set the menu's background color
734   *
735   * @param { ResourceColor } value - The backgroundColor of menu.
736   * @returns { SelectAttribute } the attribute of the select.
737   * @syscap SystemCapability.ArkUI.ArkUI.Full
738   * @crossplatform
739   * @since 11
740   */
741  /**
742   * set the menu's background color
743   *
744   * @param { ResourceColor } value - The backgroundColor of menu.
745   * @returns { SelectAttribute } the attribute of the select.
746   * @syscap SystemCapability.ArkUI.ArkUI.Full
747   * @crossplatform
748   * @atomicservice
749   * @since 12
750   */
751  menuBackgroundColor(value: ResourceColor): SelectAttribute;
752
753  /**
754   * set menu background blur Style
755   *
756   * @param { BlurStyle } value - The BackgroundBlurStyle of menu.
757   * @returns { SelectAttribute } the attribute of the select.
758   * @syscap SystemCapability.ArkUI.ArkUI.Full
759   * @crossplatform
760   * @since 11
761   */
762  /**
763   * set menu background blur Style
764   *
765   * @param { BlurStyle } value - The BackgroundBlurStyle of menu.
766   * @returns { SelectAttribute } the attribute of the select.
767   * @syscap SystemCapability.ArkUI.ArkUI.Full
768   * @crossplatform
769   * @atomicservice
770   * @since 12
771   */
772  menuBackgroundBlurStyle(value: BlurStyle): SelectAttribute;
773
774  /**
775   * Sets the size for controls within Select Component.
776   *
777   * @param { ControlSize } value - control size
778   * @returns { SelectAttribute } the attribute of the select.
779   * @syscap SystemCapability.ArkUI.ArkUI.Full
780   * @crossplatform
781   * @atomicservice
782   * @since 12
783   */
784  controlSize(value: ControlSize): SelectAttribute;
785
786  /**
787   * Register a ContentModifier for each menu item.
788   *
789   * @param { ContentModifier<MenuItemConfiguration> } modifier - The content modifier of select menu item.
790   * @returns { SelectAttribute } the attribute of the select.
791   * @syscap SystemCapability.ArkUI.ArkUI.Full
792   * @crossplatform
793   * @atomicservice
794   * @since 12
795   */
796  menuItemContentModifier(modifier: ContentModifier<MenuItemConfiguration>): SelectAttribute;
797
798  /**
799   * Set the divider of select.
800   *
801   * @param { Optional<DividerOptions> | null } options Set custom and hidden divider.
802   * @returns { SelectAttribute } the attribute of the select.
803   * @syscap SystemCapability.ArkUI.ArkUI.Full
804   * @crossplatform
805   * @atomicservice
806   * @since 12
807   */
808  divider(options: Optional<DividerOptions> | null): SelectAttribute;
809}
810
811/**
812 * MenuItemConfiguration used by menu item content modifier.
813 *
814 * @interface MenuItemConfiguration
815 * @syscap SystemCapability.ArkUI.ArkUI.Full
816 * @crossplatform
817 * @atomicservice
818 * @since 12
819 */
820declare interface MenuItemConfiguration extends CommonConfiguration<MenuItemConfiguration>{
821  /**
822   * Indicates the text of this menu item.
823   *
824   * @type { ResourceStr }
825   * @syscap SystemCapability.ArkUI.ArkUI.Full
826   * @crossplatform
827   * @atomicservice
828   * @since 12
829   */
830  value: ResourceStr;
831
832  /**
833   * Indicates the icon of this menu item.
834   *
835   * @type { ?ResourceStr }
836   * @syscap SystemCapability.ArkUI.ArkUI.Full
837   * @crossplatform
838   * @atomicservice
839   * @since 12
840   */
841  icon?: ResourceStr;
842
843  /**
844   * Indicates the symbol icon of this menu item.
845   *
846   * @type { ?SymbolGlyphModifier }
847   * @syscap SystemCapability.ArkUI.ArkUI.Full
848   * @crossplatform
849   * @atomicservice
850   * @since 12
851   */
852  symbolIcon?: SymbolGlyphModifier;
853
854  /**
855   * Indicates whether this menu item is selected or not.
856   *
857   * @type { boolean }
858   * @syscap SystemCapability.ArkUI.ArkUI.Full
859   * @crossplatform
860   * @atomicservice
861   * @since 12
862   */
863  selected: boolean;
864
865  /**
866   * Indicates the index of the menu item.
867   *
868   * @type { number }
869   * @syscap SystemCapability.ArkUI.ArkUI.Full
870   * @crossplatform
871   * @atomicservice
872   * @since 12
873   */
874  index: number;
875
876  /**
877   * Select this menu item.
878   *
879   * @param { number } index - The value of menu item index.
880   * @param { string } value - The value of menu item text.
881   * @syscap SystemCapability.ArkUI.ArkUI.Full
882   * @crossplatform
883   * @atomicservice
884   * @since 12
885   */
886  triggerSelect(index: number, value: string): void;
887}
888/**
889 * Defines Select Component.
890 *
891 * @syscap SystemCapability.ArkUI.ArkUI.Full
892 * @since 8
893 */
894/**
895 * Defines Select Component.
896 *
897 * @syscap SystemCapability.ArkUI.ArkUI.Full
898 * @crossplatform
899 * @since 10
900 */
901/**
902 * Defines Select Component.
903 *
904 * @syscap SystemCapability.ArkUI.ArkUI.Full
905 * @crossplatform
906 * @atomicservice
907 * @since 11
908 */
909declare const Select: SelectInterface;
910
911/**
912 * Defines Select Component instance.
913 *
914 * @syscap SystemCapability.ArkUI.ArkUI.Full
915 * @since 8
916 */
917/**
918 * Defines Select Component instance.
919 *
920 * @syscap SystemCapability.ArkUI.ArkUI.Full
921 * @crossplatform
922 * @since 10
923 */
924/**
925 * Defines Select Component instance.
926 *
927 * @syscap SystemCapability.ArkUI.ArkUI.Full
928 * @crossplatform
929 * @atomicservice
930 * @since 11
931 */
932declare const SelectInstance: SelectAttribute;
933