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