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