import { FIELD_TYPE } from '../../domain/field/field-type';
import { FieldMeta } from '../../capabilities/model-field-runtime';
import { FieldManifest } from '../../capabilities/field-manifest';
import { PaperWidgetManifest } from '../../capabilities/paper-widget-manifest';
import { PAPER_WIDGET_TYPE } from '../../domain/paper-widget/paper-widget-type';
import { PaperWidgetMeta } from '../../capabilities/model-field-runtime/types/paper-widget';
import { WidgetMeta } from '../../core';
export interface CreateWidgetFromPaletteOptions {
    /** 主从关联字段 key */
    parentFieldKey?: string;
    /** 插入来源 */
    source?: 'palette';
    /** 覆盖默认 props */
    overrideProps?: Record<string, any>;
}
export declare function createDesignFieldToWidgetFactory(getManifest: (type: FIELD_TYPE) => FieldManifest | undefined): (field: FieldMeta, opts?: CreateWidgetFromPaletteOptions) => WidgetMeta;
export declare function createDesignPaperWidgetToWidgetFactory(getManifest: (type: PAPER_WIDGET_TYPE) => PaperWidgetManifest | undefined): (widget: PaperWidgetMeta, opts?: CreateWidgetFromPaletteOptions) => WidgetMeta;
