import React from "react";
import { CompactColor } from "../Structure/ExpressionReactContext";
import { XExpressionEditorData } from "../ExpressionBuilder";
interface IExpressionView extends XExpressionEditorData {
    color?: CompactColor;
    hideValidation?: boolean;
    groupBracket?: {};
    onUpdate?: () => void;
    onDone?: () => void;
    open?: boolean;
    defaultOpen?: boolean;
    onOpen?: () => void;
}
export declare class ExpressionView extends React.Component<IExpressionView, {
    open: boolean;
}> {
    static contextType: React.Context<import("../Structure/ExpressionReactContext").IExpressionContext>;
    private ref;
    constructor(props: IExpressionView);
    componentDidUpdate(prevProps: IExpressionView): void;
    onOpen: () => void;
    onClose: () => void;
    render(): JSX.Element;
}
export {};
