1/* 2 * Copyright (c) 2022 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 * Defines the option of MenuItemGroup. 18 * @since 9 19 */ 20 declare interface MenuItemGroupOptions { 21 /** 22 * Defines the header display info. 23 * @since 9 24 */ 25 header?: ResourceStr | CustomBuilder; 26 27 /** 28 * Defines the footer display info. 29 * @since 9 30 */ 31 footer?: ResourceStr | CustomBuilder; 32 } 33 34 /** 35 * Defines the MenuItemGroup Component. 36 * @since 9 37 */ 38 interface MenuItemGroupInterface { 39 /** 40 * Creates the MenuItemGroup component. 41 * @since 9 42 */ 43 (value?: MenuItemGroupOptions): MenuItemGroupAttribute; 44 } 45 46 /** 47 * Defines the MenuItemGroup component attribute functions. 48 * @since 9 49 */ 50 declare class MenuItemGroupAttribute extends CommonMethod<MenuItemGroupAttribute> {} 51 52 /** 53 * Defines MenuItemGroup Component. 54 * @since 9 55 */ 56 declare const MenuItemGroup: MenuItemGroupInterface; 57 58 /** 59 * Defines MenuItemGroup Component instance. 60 * @since 9 61 */ 62 declare const MenuItemGroupInstance: MenuItemGroupAttribute; 63