export default class CodeControl extends React.Component<any, any, any> {
    static propTypes: {
        field: Validator<any>;
        onChange: PropTypes.Validator<(...args: any[]) => any>;
        value: PropTypes.Requireable<PropTypes.ReactNodeLike>;
        forID: PropTypes.Validator<string>;
        classNameWrapper: PropTypes.Validator<string>;
        widget: PropTypes.Validator<object>;
        isParentListCollapsed: PropTypes.Requireable<boolean>;
    };
    constructor(props: any);
    constructor(props: any, context: any);
    keys: any;
    state: {
        isActive: boolean;
        unknownLang: null;
        lang: string;
        keyMap: string;
        settingsVisible: boolean;
        codeMirrorKey: string;
        theme: string;
        lastKnownValue: any;
    };
    visibility: {
        isInvisibleOnInit: boolean;
        isRefreshedAfterInvisible: boolean;
    };
    shouldComponentUpdate(nextProps: any, nextState: any): boolean;
    componentDidMount(): void;
    componentDidUpdate(prevProps: any, prevState: any): void;
    updateCodeMirrorProps(prevState: any): void;
    refreshCodeMirrorInstance(): void;
    getLanguageByName: (name: any) => any;
    getKeyMapOptions: () => {
        value: string;
        label: string;
    }[];
    getInitialLang: () => any;
    allowLanguageSelection: boolean;
    toValue: (type: any, value: any) => any;
    getKeys(field: any): any;
    valueIsMap(): any;
    handleChangeCodeMirrorProps(changedProps: any): Promise<void>;
    handleChange(newValue: any): void;
    showSettings: () => void;
    hideSettings: () => void;
    handleFocus: () => void;
    handleBlur: () => void;
    setActive: () => void;
    setInactive: () => void;
    render(): React.JSX.Element;
    cm: any;
}
import React from 'react';
import PropTypes from 'prop-types';
