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 {CommonMethod, Color, Resource} from "./common"; 17import {TextAlign, FontWeight, FontStyle} from "./text"; 18 19export declare class TextAreaExtend<T> extends TextAreaAttribute<T> { 20} 21 22interface TextArea extends TextAreaAttribute<TextArea> { 23 (options?: { 24 placeholder: string; 25 text: string; 26 }): TextArea; 27} 28 29declare class TextAreaAttribute<T> extends CommonMethod<T> { 30 placeholderColor(value: Color): T; 31 placeholderFont(value:{ size: number, weight: FontWeight, fontFamily: string | Resource, style: FontStyle }): T; 32 textAlign(value: TextAlign): T; 33 caretColor(value: Color): T; 34 onChange(callback: (value: string) => void): T; 35} 36 37export declare const TextAreaInterface: TextArea;