1/* 2 * Copyright (c) 2021 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 hyperlink interface. 18 * @since 7 19 */ 20interface HyperlinkInterface { 21 /** 22 * Return to get Hyperlink. 23 * adress: Web page redirected by the hyperlink component. 24 * content: Hyperlinks in the hyperlink component display text. 25 * @since 7 26 */ 27 (address: string | Resource, content?: string | Resource): HyperlinkAttribute; 28} 29 30/** 31 * Defines the hyperlink attribute functions 32 * @since 7 33 */ 34declare class HyperlinkAttribute extends CommonMethod<HyperlinkAttribute> { 35 /** 36 * Set Color 37 * @since 7 38 */ 39 color(value: Color | number | string | Resource): HyperlinkAttribute; 40} 41 42/** 43 * Defines Hyperlink Component. 44 * @since 7 45 */ 46declare const Hyperlink: HyperlinkInterface; 47 48/** 49 * Defines Hyperlink Component instance. 50 * @since 7 51 */ 52declare const HyperlinkInterface: HyperlinkAttribute; 53