/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import React from 'react';
import './DSLEditor.less';
import './DSLLanguage';
import { DSLLanguageOptions, DSLResult } from '@kapeta/kaplang-core';
import { BoxProps } from '@mui/material';
export interface DSLEditorProps extends DSLLanguageOptions {
    value?: DSLResult | string;
    readOnly?: boolean;
    validator?: (object: any) => void;
    onChange?: (structure: DSLResult) => any;
    onCodeChange?: (code: string) => any;
    onError?: (err: any) => any;
    /**
     * Around the DSLEditor there is a wrapping div. This property allows to pass props to this div
     * (MUI Box component)
     */
    wrapperProps?: BoxProps;
}
export declare const DSLEditor: (props: DSLEditorProps) => React.JSX.Element;
