import { Ref, PropType } from 'vue';
import { Form } from 'ant-design-vue';
import { ComponentSchema, FormDataModel } from '../../../core/types/epic-designer';

interface FormInstance extends InstanceType<typeof Form> {
    getData?: () => FormDataModel;
    setData?: (FormDataModel: any) => void;
    validateFields: () => void;
    validate: () => void;
}
/**
 * 获取表单数据
 * @param formName 表单name
 */
declare function getData(): FormDataModel;
/**
 * 校验表单数据
 * @param data
 */
declare function validate(): void | undefined;
/**
 * 设置表单数据
 * @param data
 */
declare function setData(data: FormDataModel): void;
declare function __VLS_template(): {
    "edit-node"?(_: {}): any;
    node?(_: {
        componentSchema: ComponentSchema;
    }): any;
};
declare const __VLS_component: import('vue').DefineComponent<{
    componentSchema: {
        type: PropType<ComponentSchema>;
        require: boolean;
        default: () => {};
    };
}, {
    form: Ref<FormInstance | null, FormInstance | null>;
    getData: typeof getData;
    setData: typeof setData;
    validate: typeof validate;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
    componentSchema: {
        type: PropType<ComponentSchema>;
        require: boolean;
        default: () => {};
    };
}>>, {
    componentSchema: ComponentSchema;
}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};
