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 Menu Component. 18 * @since 9 19 */ 20 interface MenuInterface { 21 /** 22 * Creates the menu component. 23 * @since 9 24 */ 25 (): MenuAttribute; 26 } 27 28 /** 29 * Defines the Menu component attribute functions. 30 * @since 9 31 */ 32 declare class MenuAttribute extends CommonMethod<MenuAttribute> { 33 /** 34 * Set the Menu text size. 35 * @since 9 36 */ 37 fontSize(value: Length): MenuAttribute; 38 39 } 40 41 /** 42 * Defines Menu Component. 43 * @since 9 44 */ 45 declare const Menu: MenuInterface; 46 47 /** 48 * Defines Menu Component instance. 49 * @since 9 50 */ 51 declare const MenuInstance: MenuAttribute; 52