import React, { ComponentProps, CSSProperties, ErrorInfo } from "react"; export interface Props { /** 值改变回调 */ onChange: (value: any) => void; /** 编辑器类型 */ editorTypes?: Record>; /** 值 */ value?: any; /** 标签 */ label?: string | { text?: string; /** 标签样式 */ style?: CSSProperties; }; /** 编辑器 */ editor: React.ReactElement; /** 描述 */ description?: string; /** 弹窗配置 */ dialog?: { /** 宽度 */ width?: number; /** 高度 */ height?: number; /** 描述 */ description?: string; }; defaultValue?: any; /** 属性分组名,相同分组的属性渲染在一起(component-editor2 使用) */ group?: string; } interface State { } interface PropertyEditorErrorBoundaryProps { resetKey?: unknown; children?: React.ReactNode; } interface PropertyEditorErrorBoundaryState { errorMessage?: string; } export declare class PropertyEditorErrorBoundary extends React.Component { constructor(props: PropertyEditorErrorBoundaryProps); static getDerivedStateFromError(error: unknown): PropertyEditorErrorBoundaryState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; componentDidUpdate(prevProps: PropertyEditorErrorBoundaryProps): void; render(): React.ReactNode; } export declare class PropertyEditorContainer extends React.Component { private dialog; private editor; private clonedValue; constructor(props: Props); componentDidMount(): void; private cloneEditor; private renderDescription; private showDialog; render(): React.ReactNode; } export default PropertyEditorContainer; interface DialogProps extends ComponentProps { title?: string; description?: string; width?: number; height?: number; } interface DialogState { open: boolean; editor?: React.ReactElement; title?: string; } export declare class PropertyEditorDialog extends React.Component { private editorInstance; constructor(props: DialogProps); show(title?: string, editor?: React.ReactElement): void; onOk(): void; render(): React.JSX.Element; }