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 16import {CommonShapeMethod} from "./common"; 17 18export declare class RectExtend<T> extends RectAttribute<T> { 19} 20 21interface Rect extends RectAttribute<Rect> { 22 new (value?: { width?: number | string, height?: number | string, radius?: number | string | Array<any> } | 23 { 24 width?: number | string, height?: number | string, radiusWidth?: number | string, 25 radiusHeight?: number | string 26 }): Rect; 27 (value?: { width?: number | string, height?: number | string, radius?: number | string | Array<any> } | 28 { 29 width?: number | string, height?: number | string, radiusWidth?: number | string, 30 radiusHeight?: number | string 31 }): Rect; 32} 33 34declare class RectAttribute<T> extends CommonShapeMethod<T> { 35 radiusWidth(value: number | string): T; 36 37 radiusHeight(value: number | string): T; 38 39 radius(value: number | string | Array<any>): T; 40} 41 42export declare const RectInterface: Rect; 43