import type { FormBaseControl, FormControlProps, StaticControlSchemaBase } from '../../types';
/**
 * 自定义组件
 */
export interface CustomSchema extends FormBaseControl {
    /**
     * 实现自定义功能的渲染器，主要给 JS SDK 和可视化编辑器里使用。
     *
     *
     */
    type: 'custom' | `custom-${string}`;
    onMount?: (dom: HTMLElement, value: any, onChange: (val: any) => void, props: any) => void | string;
    onUpdate?: Function | string;
    onUnmount?: Function | string;
    inline?: boolean;
    id?: string;
    html?: string;
}
export interface StaticCustomSchema extends Omit<CustomSchema, 'type' | 'remark' | 'labelRemark'>, StaticControlSchemaBase {
    type: 'static-custom' | `static-custom-${string}`;
}
export interface CustomProps extends FormControlProps, Omit<CustomSchema, 'inputClassName' | 'descriptionClassName'> {
    className?: string;
    value?: any;
    wrapperComponent?: any;
    inline?: boolean;
}
