/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import React from 'react';
import { DSLFormEditorProps } from "./types";
import { DSLResult } from '@kapeta/kaplang-core';
export interface ModelEditorProps {
    value?: DSLResult | string;
    onChange?: (structure: DSLResult) => any;
    onCodeChange?: (code: string) => any;
    onError?: (err: any) => any;
    readOnly?: boolean;
    validTypes?: string[];
}
export declare const ModelEditor: (props: ModelEditorProps) => React.JSX.Element;
export declare const ModelEditorField: (props: DSLFormEditorProps<ModelEditorProps>) => React.JSX.Element;
