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 list item group options. 18 * @since 9 19 */ 20declare interface ListItemGroupOptions { 21 /** 22 * Describes the ListItemGroup header. 23 * @since 9 24 */ 25 header?: CustomBuilder; 26 27 /** 28 * Describes the ListItemGroup footer. 29 * @since 9 30 */ 31 footer?: CustomBuilder; 32 33 /** 34 * Describes the ListItemGroup space. 35 * @since 9 36 */ 37 space?: number | string; 38} 39 40/** 41 * Defines the ListItemGroup component 42 * @since 9 43 */ 44interface ListItemGroupInterface { 45 /** 46 * Called when interface is called. 47 * @since 9 48 */ 49 (options?: ListItemGroupOptions): ListItemGroupAttribute; 50} 51 52/** 53 * Defines the item group attribute functions. 54 * @since 9 55 */ 56declare class ListItemGroupAttribute extends CommonMethod<ListItemGroupAttribute> { 57 /** 58 * Called when the ListItemGroup split line style is set. 59 * @since 9 60 */ 61 divider( 62 value: { 63 strokeWidth: Length; 64 color?: ResourceColor; 65 startMargin?: Length; 66 endMargin?: Length; 67 } | null, 68 ): ListItemGroupAttribute; 69} 70 71/** 72 * Defines ListItemGroup Component instance. 73 * @since 9 74 */ 75declare const ListItemGroupInstance: ListItemGroupAttribute; 76 77/** 78 * Defines ListItemGroup Component. 79 * @since 9 80 */ 81declare const ListItemGroup: ListItemGroupInterface; 82