import React from 'react';
import './styles/jsonEditor.less';
export declare const classPrefix = "json-editor";
export declare const JsonEditorContext: React.Context<{
    expandList: string[];
    setExpandList: React.Dispatch<React.SetStateAction<string[]>>;
    columnExtra?: ((label?: string, value?: any, path?: string) => React.ReactNode) | undefined;
    labelRender?: ((label?: string, path?: string) => React.ReactNode) | undefined;
    rowClassName?: string | undefined;
}>;
/**
 * 将传进来的json进行格式化展示，并且支持编辑
 */
declare const JsonEditor: React.FC<{
    /**
     * 是否只读
     */
    readOnly?: boolean;
    value?: string;
    onChange?: (value: string) => void;
    columnExtra?: (label?: string, value?: any, path?: string) => React.ReactNode;
    labelRender?: (label?: string, path?: string) => React.ReactNode;
    /**
     * 默认展开层数
     */
    defaultExpandDeep?: number;
    /**
     * 数组元素默认展开个数
     */
    defaultExpandLength?: number;
    rowClassName?: string;
    defaultMode?: 'edit' | 'view';
}>;
export default JsonEditor;
