/****************************************************************************** Copyright (c) JDJR Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Author: kemao 2019-10-30 14:16:53 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /** * LarkReact,主要是封装一些常用的React方法 */ export declare class LarkReact { static container: any; /** * 将state转化为async方法 * @param state * @param instance */ static setState(state: any, instance: any): Promise; /** * 渲染一个元件 * @param component 元件 * * ```jsx * LarkReact.renderElement(); * ``` */ static renderElement(element: any): any; /** * 渲染一个组件类 * @param component 组件的类 * @param componentProps 组件实例化时的属性 * * ```js * LarkReact.renderComponent(Component,{ props: "props" }); * ``` */ static renderComponent(component: any, componentProps?: any): void; }