import { WidgetMeta } from '../../core';
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';
export interface CreateWidgetFromFieldOptions {
    /** 主从关联字段 key */
    parentFieldKey?: string;
    /** 插入来源 */
    source?: 'palette';
    /** 覆盖默认 props */
    overrideProps?: Record<string, any>;
}
export declare function createDesignPaperWidgetToWidgetFactory(getPaperWidgetManifest: (type: PAPER_WIDGET_TYPE) => PaperWidgetManifest | undefined): (widget: PaperWidgetMeta, opts?: CreateWidgetFromFieldOptions) => WidgetMeta;
