import React from 'react';
import 'codemirror/mode/css/css';
import 'codemirror/addon/fold/brace-fold';
import 'codemirror/addon/fold/foldgutter';
import 'codemirror/addon/display/autorefresh';
import type { ModeSpec, ModeSpecOptions } from 'codemirror';
import 'codemirror/mode/javascript/javascript';
export declare const CodeEditor: React.FC<{
    defaultCode: string;
    className?: string;
    mode?: string | ModeSpec<ModeSpecOptions>;
    onChange?: (v: string) => void;
    onBlur?: (v: string) => void;
    needRerenderAfterMount?: boolean;
    readOnly?: boolean;
}>;
