import type { UnknownWidgetParams, Widget, WidgetDescription } from './widget'; /** * The function that creates a new widget. */ export type WidgetFactory = ( /** * The params of the widget. */ widgetParams: TWidgetParams & TConnectorParams) => Widget; export type UnknownWidgetFactory = WidgetFactory<{ $$type: string; }, any, any>;