import React, { PureComponent } from 'react';
import { EditorProps } from '@monaco-editor/react';
interface IProps extends EditorProps {
    style?: any;
    mode?: string;
    json?: string | Object;
    onError?: (error: any) => void;
    themeBgColor?: string;
}
/**
 * JsonEditor
 * @param {object} json 用于绑定的json数据
 * @param {func} onChange 变化时的回调
 * @param {func} getJson 为外部提供回去json的方法
 * @param {func} onError 为外部提供json格式错误的回调
 * @param {string} themeBgColor 为外部暴露修改主题色
 */
export default class TwJsonEditor extends PureComponent<IProps, any> {
    jsoneditor: any;
    container: string;
    constructor(props: any);
    onChange: (value: any, ev: any) => void;
    getJson: () => any;
    onError: (errArr: any) => void;
    initJsonEditor: () => void;
    componentDidMount(): void;
    handleEditorWillMount: (maco: any) => void;
    render(): React.JSX.Element;
}
export {};
