import React from 'react'; import type { RendererProps } from 'jamis-core'; import type { BaseSchema, SchemaCollection } from '../types'; /** * WebComponent 容器组件。 * */ export interface WebComponentSchema extends BaseSchema { /** * 指定为 web-component 类型 */ type: 'web-component'; /** * 标签 */ tag: string; /** * 子节点 */ body: SchemaCollection; /** * 组件属性 */ props?: { [propName: string]: any; }; } export default class WebComponent extends React.Component { renderBody(): JSX.Element | null; render(): JSX.Element; } export declare class WebComponentRenderer extends WebComponent { }